Diagnostics. Tracing. EventSource
This package exposes an enhanced developer experience for coding against the Microsoft.Diagnostics.Tracing.EventSource (including build time validation). Microsoft.Diagnostics.Tracing.EventSource allows for firing ETW events from managed code. It enables defining a strongly typed specification of an ETW provider that can be called by managed code. The EventSource class is also included in the .NET Framework. This package provides a newer version that has more features. It is meant to be used as a stop gap until those features it contains are ported to System.Diagnostics.Tracing.EventSource.
For more details, have a look at https://msdn.microsoft.com/en-us/library/system.diagnostics.tracing.eventsource.aspx.
- ETW channel support
- Support for static registration
- .NET Framework 3.5
- .NET Framework 4.0
- .NET Framework 4.5
- Windows Store apps
- Windows Phone App 8.1
See the version list below for details.
Requires NuGet 2.5 or higher.
The 1.1 release of EventSource has a number of new non-trivial features
DynamicEvents - Allows events defined 'on the fly' by without creating a 'event method'.
RichPayloads - Allows specially attributed classes and arrays as well as primitive types to be passed as a payload.
ActivityTracking - Causes Start and Stop events to tag events between them with ID that represents all currently active activities.
All of these features are non-trivial in the sense that they need more explanation than release notes justify.
Eventually MSDN will have this documentation, and you can go to https://blogs.msdn.com/b/vancem/ to get a preview.