| |||||||||||||
Enabling Application-level TracingASP.NET Web Applications ASP.NET Trace Functionality You can enable tracing for an entire application in that application's configuration system the When you enable global tracing, you also enable page-level tracing for all the pages in the application, unless you explicitly disable tracing in a page using the @ Page directive with a Trace = "false" attribute and value. Any TraceContext.Write or TraceContext.Warn statements that you have included in a page's code will be stored and returned to the application-level trace viewer. If you want these statements and the rest of the trace information to appear appended to the end of the page that they are associated with, set the PageOutput attribute in the tracing configuration section of the For more information about configuring your ASP.NET application, see ASP.NET Configuration. The following are all the attributes you can use to modify the behavior of application-level tracing.
For example, the following configuration collects trace information for up to 40 requests, and prevents trace statements from being output to the requesting browser: <configuration> <system.web> <trace enabled = "true" requestLimit = "40" pageOutput = "false" /> </system.web> </configuration>
See AlsoApplication-level Tracing Viewing Application-level Trace Information With the Trace Viewer |
| ||||||||||||
Check out related books at Amazon
© 2000-2008 Rey Nuñez All rights reserved.
If you have any question, comment or suggestion
about this site, please send us a note
You can help support aspxtreme