TraceLogging Classes

The Windows SDK provides the following C++ classes that provide support for logging TraceLogging events during an ETW activity:

  • TraceLoggingActivity helps manage a TraceLogging ETW activity where events are explicitly associated with the activity.
  • TraceLoggingThreadActivity helps manage a TraceLogging ETW activity where events are implicitly associated with the activity based on the thread-local default activity ID.
  • TraceLoggingThreadActivityIdSetter helps set the thread-local default activity ID on scope entry and restore the original ID on scope exit.

About Event Tracing

TraceLogging