ASP.NET Tutorial/Configuration/trace
To enable application-level tracing
File: Web.Config
<configuration>
<system.web>
<trace enabled="true" />
</system.web>
</configuration>
Trace configuration
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.web>
<trace
enabled="true"
localOnly="true"
pageOutput="false"
requestLimit="10"
traceMode="SortByTime"/>
</system.web>
</configuration>