Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
Previous Versions
.NET Framework 1.1
.NET Framework
Reference

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2003/.NET Framework 1.1

Other versions are also available for the following:
.NET Framework General Reference
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

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker