Gets or sets the trace level which specifies what messages to output for tracing and debugging.
[Visual Basic] Public Property Level As TraceLevel [C#] public TraceLevel Level {get; set;} [C++] public: __property TraceLevel get_Level(); public: __property void set_Level(TraceLevel); [JScript] public function get Level() : TraceLevel; public function set Level(TraceLevel);
One of the TraceLevel values that specifies what messages to output for tracing and debugging.
Exception Type | Condition |
---|---|
ArgumentException | Setting the level to a value not in the TraceLevel enumeration. |
The default value is Off. The level can be set by an external setting file.
Setting this property will update the TraceError, TraceWarning, TraceInfo, and TraceVerbose properties in this class.
TraceSwitch Class | TraceSwitch Members | System.Diagnostics Namespace | TraceSwitch | TraceLevel | Switch | Debug | Trace