System.Diagnostics.SourceLevels Enumeration

Specifies the levels of trace messages filtered by the source switch and event type filter.

Syntax

[System.Flags]
public enum SourceLevels

Remarks

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.

Members

Member NameDescription
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.

Requirements

Namespace: System.Diagnostics
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0