Purpose of tracing levels in System.Diagnostics.TraceSwitcher - C#.NET

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 nameDescription
ErrorOutput error-handling messages.
InfoOutput informational messages, warnings, and error-handling messages.
OffOutput no tracing and debugging messages.
VerboseOutput all debugging and tracing messages.
WarningOutput warnings and error-handling messages.
Difference between the Debug class and Trace class - C#.NET
C#.NET - Difference between the Debug class and Trace class - Debug class is used for debug builds while Trace class is used for both debug and release builds...
Role of the DataReader class in ADO.NET connections - C#.NET
C#.NET - Role of the DataReader class in ADO.NET connections - DataReader class returns a read-only dataset from the data source when the command is executed...
Purpose of Dispose method - C#.NET
C#.NET - purpose of Dispose method - Dispose method is used to destroy the objects from the memory...
Post your comment