The source levels identify the System.Diagnostics.TraceEventType events that are to be traced. The System.Diagnostics.SourceSwitch class uses the System.Diagnostics.SourceLevels enumeration to define the event level of the trace message to use for filtering messages to send to the trace listener.
The System.Diagnostics.EventTypeFilter class uses the System.Diagnostics.SourceLevels enumeration to determine whether a trace listener should emit a trace.
Member Name | Description |
---|---|
ActivityTracing |
Allows the TraceEventType.Stop, TraceEventType.Start, TraceEventType.Suspend, TraceEventType.Transfer, and TraceEventType.Resume events through. |
All |
Allows all events through. |
Critical |
Allows only TraceEventType.Critical events through. |
Error |
Allows TraceEventType.Critical and TraceEventType.Error events through. |
Information |
Allows TraceEventType.Critical, TraceEventType.Error, TraceEventType.Warning, and TraceEventType.Information events through. |
Off |
Does not allow any events through. |
Verbose |
Allows TraceEventType.Critical, TraceEventType.Error, TraceEventType.Warning, TraceEventType.Information, and TraceEventType.Verbose events through. |
Warning |
Allows TraceEventType.Critical, TraceEventType.Error, and TraceEventType.Warning events through. |