Trace and Debug Settings Schema

Trace and debug settings specify trace listeners that collect, store, and route messages, and the level where a trace switch is set.

The following table describes the function of each trace and debug settings element.

Element

Description

<add> Element for <listeners> for <source>

Adds a listener to the Listeners collection for a trace source.

<add> Element for <listeners> for <trace>

Adds a listener to the Listeners collection.

<add> Element for <sharedListeners>

Adds a listener to the sharedListeners collection.

<add> Element for <switches>

Specifies the level where a trace switch is set.

<assert> Element

Specifies whether to display a message box when you call the Debug.Assert method; also specifies the name of the file to write messages to.

<clear> Element for <listeners> for <source>

Clears the Listeners collection for a trace source.

<clear> Element for <listeners> for <trace>

Clears the Listeners collection for trace.

<filter> Element for <add> for <listeners> for <source>

Adds a filter to a listener in the Listeners collection for a trace source.

<filter> Element for <add> for <listeners> for <trace>

Adds a filter to a listener in the Listeners collection for trace.

<filter> Element for <add> for <sharedListeners>

Adds a filter to a listener in the sharedListeners collection.

<listeners> Element for <source>

Specifies listeners for the Listeners collection for a trace source.

<listeners> Element for <trace>

Specifies listeners for the Listeners collection for trace.

<performanceCounters> Element

Specifies the size of the global memory shared by performance counters.

<remove> Element for <listeners> for <trace>

Removes a listener from the Listeners collection for trace.

<remove> Element for <listeners> for <source>

Removes a listener from the Listeners collection for a trace source.

<sharedListeners> Element

Contains listeners that any source or trace element can reference.

<sources> Element

Contains trace sources that initiate tracing messages.

<source> Element

Specifies a trace source that initiates tracing messages.

<switches> Element

Contains trace switches and the level where the trace switches are set.

<system.diagnostics> Element

Specifies trace listeners that collect, store, and route messages and the level where a trace switch is set.

<trace> Element

Contains listeners that collect, store, and route tracing messages.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft