Kokirala Sudheer
Kokirala Sudheer

Reputation: 439

How to disable tracing in web api

Tracing I am seeingenter image description hereI have created a Web API project in VS 2013. Where the Tracing is enabled by default. How can I disable it?

I tried few things in webapi.config, but didn't work out.

Thanks in Advance :)

Upvotes: 0

Views: 2243

Answers (2)

Aravind
Aravind

Reputation: 492

In general, we can enable and disable tracing in web.config file, under system.web section.

<System.web>
<trace enabled="false" /> 

Hope this will be helpful.

Upvotes: 0

Darrel Miller
Darrel Miller

Reputation: 142252

Remove the line config.EnableSystemDiagnosticsTracing(); that is probably in your WebApiConfig file.

Upvotes: 1

Related Questions