Understanding Tracing in ASP.NET 2.0
page 3 of 6
by SANJIT SIL
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 26913/ 43

Application Tracing

We can enable tracing for the entire application by adding tracing settings in web.config. In code Listing 2, pageOutput="false" and requestLimit="25" are used. This means trace information is stored for 25 requests, but not displayed on the page because pageOutput attribute is set to false.

Listing 2

<configuration>
    <appSettings/>
    <connectionStrings/>
    <system.web>
        <compilation debug="false" />
        <authentication mode="Windows" />
      <trace enabled ="true" pageOutput ="false" requestLimit ="25" 
          traceMode ="SortByTime " />        
    </system.web>
</configuration>

 

The page-level settings take precedence over settings in Web.config, so if enabled="false" is set in Web.config but trace="true" is set on the page, tracing will occur.


View Entire Article

User Comments

No comments posted yet.

Product Spotlight
Product Spotlight 





Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2024 ASPAlliance.com  |  Page Processed at 2024-04-25 8:41:28 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search