Diagnostics. Tracing. TraceEvent
Event Tracing for Windows (ETW) is a powerful logging mechanism built into the Windows OS and is used extensively in Windows. You can also log ETW events yourself code using the System.Diagnostics.Tracing.EventSource class.
The TraceEvent library conains the classes needed to control ETW providers (including EventSources) and parse the events they emit.
The library includes
-- TraceEventSession which can enable ETW providers,
-- EtwTraceEventSource which lets you read the stream of ETW events, and
-- TraceLog which is is digested form of ETW events which include decoded stack traces associated with the events.
-- A Programmers Guide for using the classes above.
Also see the TraceEvent Samples NuGet package for example uses of this library.
Requires NuGet 2.5 or higher.
This package includes support for Real-Time TraceLog. TraceLog support stacks traces so this allows you to do real time monitoring of things like exceptions (or CPU) with stacks. See the samples 41_TraceLogMonitor.cs for more
This package has no dependencies.