title | description | ms.date | ms.assetid |
---|---|---|---|
TraceAreaElement Class |
The TraceAreaElement class specifies criteria for generating trace events and configures the content of log file entries. |
10/07/2016 |
886766c8-3b3c-14f3-9633-0443a6497a9c |
Specifies criteria for generating trace events and configures the content of log file entries.
class TraceAreaElement : CollectionElement
This class contains no methods.
The following table lists the properties exposed by the TraceAreaElement
class.
Name | Description |
---|---|
Areas |
A read/write string value that has a comma-delimited list, without spaces, of areas whose requests are traced when the Provider property is set to "ASPNET" or "WWW server". When Provider is set to "ASPNET," the possible values are "Infrastructure", "Module", "Page", and "AppServices". When Provider is set to "WWW server", the possible values are "Authentication", "Security", "Filter", "StaticFile", "CGI", "Compression", "Cache", "RequestNotifications", and "All". |
Provider |
A required unique read/write string value that contains the name of the provider whose failed requests are traced. The possible values are "ASP", "ASPNET", "ISAPI Extension", and "WWW Server". The key property. |
Verbosity |
A read/write sint32 value that specifies the level of verbosity when failed requests are logged. The possible values are listed in the Remarks section below. |
This class contains no subclasses.
Instances of this class are contained in the TraceAreas
array property of the TraceUrlAreaSettings class.
The following table lists the possible values for the Verbosity
property. The default is 3 (Warning
).
For a request to be marked as failed, the events raised must have a level less than or equal to the value in Verbosity
. General
events are excluded from this calculation.
Value | Keyword | Description |
---|---|---|
0 | General |
Provides information about the context of the request activity, such as the URL and verb for the request. |
1 | CriticalError |
Provides information about actions that can cause a process to exit or that are about to cause a process to exit. |
2 | Error |
Provides information about components that experience an error and cannot continue to process requests. These errors usually indicate a server-side problem. |
3 | Warning |
Provides information about components that experience an error but can continue processing requests. The default. |
4 | Information |
Provides general information about requests. |
5 | Verbose |
Provides detailed information about requests. |
TraceAreaElement
Type | Description |
---|---|
Client | - [!INCLUDEiis70] on [!INCLUDEwinvista] - [!INCLUDEiis75] on [!INCLUDEwin7] - [!INCLUDEiis80] on [!INCLUDEwin8] - [!INCLUDEiis100] on [!INCLUDEwin10] |
Server | - [!INCLUDEiis70] on [!INCLUDEwinsrv2008] - [!INCLUDEiis75] on [!INCLUDEwinsrv2008r2] - [!INCLUDEiis80] on [!INCLUDEwinsrv2012] - [!INCLUDEiis85] on [!INCLUDEwinsrv2012r2] - [!INCLUDEiis100] on [!INCLUDEwinsrv2016] |
Product | - [!INCLUDEiis70], [!INCLUDEiis75], [!INCLUDEiis80], [!INCLUDEiis85], [!INCLUDEiis100] |
MOF file | WebAdministration.mof |
CollectionElement Class
HttpTracingSection Class
TraceAreaDefinition Class
TraceAreaSettings Class
TraceFailedRequestsSection Class
TraceProviderDefinition Class
TraceProviderDefinitionsSection Class
TraceUrl Class
TraceUrlAreaSettings Class
Create a Tracing Rule for Failed Requests