Export (0) Print
Expand All
0 out of 1 rated this helpful - Rate this topic

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.

<configuration>
   <system.diagnostics>
      <assert>
      <switches>
         <add>
      <trace>
         <listeners>
            <remove>
            <add>

Element Description
<add> element for the <listeners> element Adds a listener to the Listeners collection.
<add> element for the <switches> element Specifies the level where a trace switch is set.
<assert> 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.
<listeners> Specifies a listener that collects, stores, and routes messages.
<remove> Removes a listener from the Listeners collection.
<switches> Contains trace switches and the level where the trace switches are set.
<system.diagnostics> Specifies trace listeners that collect, store, and route messages and the level where a trace switch is set.
<trace> Contains listeners that collect, store, and route tracing messages.

See Also

Configuration File Schema | Trace Class | Debug Class

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.