asp.net.ph

Skip Navigation Links

<trace> Section

ASP.NET Syntax   ASP.NET Configuration Sections


Configures the ASP.NET trace service.

<trace
   enabled = "true | false"
   requestLimit = "integer"
   pageOutput = "true | false"
/>

The <trace> tag supports five attributes.

Attribute Option Description
enabled     Specifies whether tracing is enabled for an application.
    true Indicates that tracing is enabled.
    false Indicates that tracing is not enabled. The default is false.
requestLimit     Specifies the number of trace requests to store on the server. The default is 10.
pageOutput     Specifies whether trace output is rendered at the end of each page.
    true Indicates that trace output is appended to each page.
    false Indicates that trace output is accessible through the trace utility only. The default is false.
traceMode SortByTime Indicates that trace information is displayed in the order it is processed. The default is SortByTime.
    SortByCategory Indicates that trace information is displayed alphabetically by user-defined category.
localOnly true Indicates that the trace viewer ( trace.axd ) is available only on the host Web server. The default is true.
    false Indicates that the trace viewer is not available only on the host Web server.

Syntax Example

The following example specifies tracing configuration settings.

<configuration>
   <system.web>
      <trace enabled = "false"
         requestLimit = "15"
         pageOutput = "true" />
   <system.web>
</configuration>
See Also

ASP.NET Configuration   TraceSection Class   TraceDisplayMode Enumeration   ASP.NET Trace Functionality



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note