System.Management.Automation.Tracing Namespace

Classes

BaseChannelWriter

BaseChannelWriter is the abstract base class defines event specific methods that are used to write a trace. The default implementation does not write any message to any trace channel

EtwActivity
EtwEvent

Attribute to represent an EtwEvent

EtwEventArgs

ETW events argument class

EtwEventCorrelator

A simple implementation of IEtwEventCorrelator.

NullWriter

NullWriter is the implementation of BaseChannelWriter. This implementation does not write to any trace logs. This class is singleton and exposes its only instance through the static Instance property.

PowerShellChannelWriter

ChannelWrite is the concrete implementation of IChannelWrite. It writes all the traces to the specified traceChannel. TraceChannel is specified in the constructor.
It always uses PowerShell event provider Id.

PowerShellTraceSource

TraceSource class gives access to the actual TraceWriter channels. Three channels are pre-defined 1) Debug 2) Analytic and 3) Operations This class also has strongly types methods that are used for easy tracing.

PowerShellTraceSourceFactory

TraceSourceFactory will return an instance of TraceSource every time GetTraceSource method is called.

Tracer

Tracer.

Interfaces

IEtwActivityReverter

An object that can be used to revert the ETW activity ID of the current thread to its original value.

IEtwEventCorrelator

An object that can be used to manage the ETW activity ID of the current thread.

Enums

PowerShellTraceChannel

Defines enumerations for channels

PowerShellTraceEvent

Defines enumerations for event ids

PowerShellTraceKeywords

Defines Keywords.

PowerShellTraceLevel

Define enumerations for levels

PowerShellTraceOperationCode

Defines enumerations for op codes

PowerShellTraceTask

Defines Tasks.

Delegates

CallbackNoParameter

Delegates that defines a call back with no parameter

CallbackWithState

Delegates that defines a call back with one parameter (state)

CallbackWithStateAndArgs

Delegates that defines a call back with two parameters; state and ElapsedEventArgs. It will be used in System.Timers.Timer scenarios.