SourceLevels 枚举

定义

指定由源开关和事件类型筛选器筛选的跟踪消息级别。

此枚举支持其成员值的按位组合。

public enum class SourceLevels
[System.Flags]
public enum SourceLevels
[<System.Flags>]
type SourceLevels = 
Public Enum SourceLevels
继承
SourceLevels
属性

字段

名称 说明
All -1

允许所有事件通过。

Off 0

不允许通过任何事件。

Critical 1

Critical 允许通过事件。

Error 3

允许 CriticalError 事件通过。

Warning 7

允许CriticalErrorWarning事件通过。

Information 15

允许CriticalErrorWarningInformation事件通过。

Verbose 31

允许CriticalErrorWarningInformationVerbose事件通过。

ActivityTracing 65280

允许通过 > 和事件。

注解

源级别标识 TraceEventType 要跟踪的事件。 该 SourceSwitch 类使用 SourceLevels 枚举来定义用于筛选要发送到跟踪侦听器的消息的事件级别。

EventTypeFilter 类使用 SourceLevels 枚举来确定跟踪侦听器是否应发出跟踪。

适用于