Explain the purpose of tracing levels in System.Diagnostics.TraceSwitcher.
- It specifies what messages to output for the Debug, Trace and TraceSwitch classes.
Syntax:public enum TraceLevel1
There are five levels range from none to Verbose, allowing fine-tuning the tracing activities.Member name | Description |
Error | Output error-handling messages. |
Info | Output informational messages, warnings, and error-handling messages. |
Off | Output no tracing and debugging messages. |
Verbose | Output all debugging and tracing messages. |
Warning | Output warnings and error-handling messages. |