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