System.Diagnostics.Tracing Namespace

The System.Diagnostics.Tracing namespace provides types and members that enable you to create strongly typed events to be captured by event tracing for Windows (ETW).

Classes

EventAttribute

Specifies additional event schema information for an event.

EventCommandEventArgs

Provides the arguments for the OnEventCommand(EventCommandEventArgs) callback.

EventCounter

Provides the ability to collect statistics for very frequent events through the EventSource class.

EventDataAttribute

Specifies a type to be passed to the Write<T>(String, EventSourceOptions, T) method.

EventFieldAttribute

The EventFieldAttribute is placed on fields of user-defined types that are passed as EventSource payloads.

EventIgnoreAttribute

Specifies a property should be ignored when writing an event type with the Write<T>(String, EventSourceOptions, T) method.

EventListener

Provides methods for enabling and disabling events from event sources.

EventSource

Provides the ability to create events for event tracing for Windows (ETW).

EventSourceAttribute

Allows the event tracing for Windows (ETW) name to be defined independently of the name of the event source class.

EventSourceCreatedEventArgs

Provides data for the EventSourceCreated event.

EventSourceException

The exception that is thrown when an error occurs during event tracing for Windows (ETW).

EventWrittenEventArgs

Provides data for the OnEventWritten(EventWrittenEventArgs) callback.

NonEventAttribute

Identifies a method that is not generating an event.

Structs

EventSource.EventData

Provides the event data for creating fast WriteEvent overloads by using the WriteEventCore(Int32, Int32, EventSource+EventData*) method.

EventSourceOptions

Specifies overrides of default event settings such as the log level, keywords and operation code when the Write<T>(String, EventSourceOptions, T) method is called.

Enums

EventActivityOptions

Specifies the tracking of activity start and stop events.

EventChannel

Specifies the event log channel for the event.

EventCommand

Describes the command (Command property) that is passed to the OnEventCommand(EventCommandEventArgs) callback.

EventFieldFormat

Specifies how to format the value of a user-defined type and can be used to override the default formatting for a field.

EventFieldTags

Specifies the user-defined tag that is placed on fields of user-defined types that are passed as EventSource payloads through the EventFieldAttribute.

EventKeywords

Defines the standard keywords that apply to events.

EventLevel

Identifies the level of an event.

EventManifestOptions

Specifies how the ETW manifest for the event source is generated.

EventOpcode

Defines the standard operation codes that the event source attaches to events.

EventSourceSettings

Specifies configuration options for an event source.

EventTags

Specifies the tracking of activity start and stop events. You should only use the lower 24 bits. For more information, see EventSourceOptions and Write(String, EventSourceOptions).

EventTask

Defines the tasks that apply to events.

Remarks

A strongly typed event is identified by name and contains payload descriptions. You can discover the list of events that a program can produce by using reflection.