
460
|
Chapter 20: web.config Reference
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
<trace>
<trace
enabled=boolean
localOnly=boolean
pageOutput=boolean
requestLimit=numRequests
traceMode="SortByTime|SortByCategory" />
Scope
Any
Attributes
enabled
Specifies whether tracing is enabled. The default is
False.
localOnly
Specifies whether or not trace output can be viewed by machines other than
the local host. The default is
True.
pageOutput
Specifies whether trace output is rendered to the page or stored in memory
and made accessible by the special Trace.axd URL. Trace.axd maps to an
HttpHandler that displays all currently stored traces for a given application.
The default is
False.
requestLimit
Specifies the number of requests that can be stored in the trace buffer read by
Trace.axd. Once the total number of request traces specified by this attribute
has been stored, no more traces will be stored until the trace log has been
cleared. The page displayed by Trace.axd includes a link for clearing the trace
log. The default is
10.
traceMode
Specifies the sort order of items in the Trace Information section of the trace.
Valid values are
SortByTime and SortByCategory. SortByCategory is useful
when you are using Trace.Write and Trace.Warn with your own category
names passed as parameters. The default is
SortByTime.
Child Elements
None
Example
This example turns ...