TraceLoggingActivity class (traceloggingactivity.h)

Provides support for logging ETW events during an activity. All events must be manually tagged or nested.

Inheritance

The TraceLoggingActivity class implements _TlgActivityBase.

Methods

The TraceLoggingActivity class has these methods.

 
TraceLoggingActivity::Provider

TraceLoggingActivity::Provider (traceloggingactivity.h) returns the handle to the TraceLogging provider associated with this activity.
TraceLoggingActivity::SetRelatedActivity

Sets the related activity for this TraceLoggingActivity object.
TraceLoggingActivity::SetRelatedActivityId

TraceLoggingActivity::SetRelatedActivityId uses the unique identifier of an activity to set the related activity for this TraceLoggingActivity object.
TraceLoggingActivity::SetRelatedActivityId

TraceLoggingActivity::SetRelatedActivityId(const GUID) uses the unique identifier of an activity to set the related activity for this TraceLoggingActivity object.
TraceLoggingActivity::TraceLoggingActivity

Creates a new TraceLoggingActivity object. (overload 1/2)
TraceLoggingActivity::TraceLoggingActivity

Creates a new TraceLoggingActivity object. (overload 2/2)

Remarks

In order to use TraceLogging activities, you need to define an instance of either TraceLoggingActivity or TraceLoggingThreadActivity. After you have created an instance of one of these classes, you manipulate activity logging using TraceLoggingFunction, TraceLoggingWriteStart, TraceLoggingWriteStop, and TraceLoggingWriteTagged. This class automatically creates a unique identifier when tracing is turned on and the activity is started.

You can nest activities manually by providing unique identifiers to the TraceLoggingWriteStart and TraceLoggingWriteStop macros.

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2012 R2
Target Platform Windows
Header traceloggingactivity.h

See also

TraceLoggingThreadActivity Class