Content
Types of tracing
Writing Custom Trace Information
Page.Trace Vs System.Diagnostics.Trace
Integrate System.Diagnostics with ASPX Page (Routing all Trace information to web page)
trace.axd file
Creating Custom Trace Listeners
Saving Trace information in File
Types of tracing
In ASP.NET there two types of Tracing
Application Level
Page Level
Page level Tracing takes the precedence over the Application Level tracing.
Lets start with creating new website.
In web.config add following entries to enable Application level tracing below System.web element.
<trace pageOutput="true"
enabled="true"
requestLimit="10"
localOnly="false"
mostRecent="true"
traceMode="SortByTime"
/>
Read more: Codeproject