Suresh Kumar
How to enable tracing in Web API?
By Suresh Kumar in ASP.NET on Nov 22 2017
  • Suresh Kumar
    Nov, 2017 22

    To enable tracing place below code in –“Register” method of WebAPIConfig.cs file.config.EnableSystemDiagnosticsTracing();

    • 2
  • Shweta Lodha
    Apr, 2020 8

    Tracing can be enabled using below line:
    public static void Register(HttpConfiguration config)
    {
    config.EnableSystemDiagnosticsTracing();
    }

    But if you want to write your own tracer, you can inherit ITraceWriter and provide your implementation.

    • 0
  • Bidyasagar Mishra
    Jul, 2019 10

    in “Register” method of WebAPIConfig.cs place the code file.config.EnableSystemDiagnosticsTracing();

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS