TraceLogging

Overview of the TraceLogging technology.

To develop TraceLogging, you need these headers:

For programming guidance for this technology, see:

Class

 
TraceLoggingActivity

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

Provides support for logging ETW events during an activity. Events will be automatically tagged with or nested in this activity.
TraceLoggingThreadActivityIdSetter

Tags a thread with an activity id so ETW marks all events in that thread with the activity id.

Functions

 
~TraceLoggingThreadActivityIdSetter

Restores the original activity ID to the thread.
Provider

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

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

Sets the related activity for this TraceLoggingActivity object.
SetRelatedActivityId

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

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

Forward-declares a handle for a TraceLogging provider.
TRACELOGGING_DEFINE_PROVIDER

Defines a handle for a TraceLogging provider.
TRACELOGGING_DEFINE_PROVIDER_STORAGE

Reserves static storage for a TraceLogging provider handle that will be defined by the user. Prefer TRACELOGGING_DEFINE_PROVIDER over this macro.
TraceLoggingActivity

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

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

TraceLogging wrapper macro that adds a field with binary data to the event.
TraceLoggingChannel

TraceLogging wrapper macro that sets the channel for the event.
TraceLoggingCustom

TraceLogging wrapper macro that adds a field that was packed using a custom serializer to the event.
TraceLoggingCustomAttribute

TraceLogging wrapper macro that adds custom information about the event into the PDB.
TraceLoggingDescription

TraceLogging wrapper macro that sets the description for the event.
TraceLoggingEventTag

TraceLogging wrapper macro that sets the event tag for the event.
TraceLoggingFunction

Creates a TraceLoggingThreadActivity named after the current function and writes a Start event for the activity. A Stop activity will be written at the end of the current scope.
TraceLoggingKeyword

TraceLogging wrapper macro that sets the keyword for the event.
TraceLoggingLevel

TraceLogging wrapper macro that sets the level for the event
TraceLoggingOpcode

TraceLogging wrapper macro that sets the opcode for the event
TraceLoggingOptionGroup

TraceLogging macro for use in TRACELOGGING_DEFINE_PROVIDER to specify a provider group.
TraceLoggingRegisterEx

Registers a TraceLogging provider so that it can be used to log events, specifying an ETW enable callback.
TraceLoggingSocketAddress

TraceLogging wrapper macro that adds a field with a socket address to the event.
TraceLoggingStruct

TraceLogging wrapper macro that adds a field that contains other fields to the event.
TraceLoggingThreadActivity

Initializes a new instance of the TraceLoggingThreadActivity class. (overload 2/2)
TraceLoggingThreadActivity

Initializes a new instance of the TraceLoggingThreadActivity class. (overload 1/2)
TraceLoggingThreadActivityIdSetter

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

Creates a new TraceLoggingThreadActivityIdSetter object. (overload 1/2)
TraceLoggingValue

TraceLogging wrapper macro for C++ that adds a field with an automatically-deduced type to the event.
TraceLoggingWrite

Emits a TraceLogging event.
TraceLoggingWriteActivity

Emits a TraceLogging event with specified activity IDs.
TraceLoggingWriteStart

Starts an activity and logs the start event.
TraceLoggingWriteStop

Stops an activity and logs the stop event.
TraceLoggingWriteTagged

Logs an event with an associated ETW activity id.