This project has moved and is read-only. For the latest updates, please go here.

Unit Testing Approach for custom EventSource (in v4.5 System.Diagnostics.Tracing)

Jul 29, 2014 at 10:44 PM
I'm trying to setup a custom event source (for ETW) for our application, and would like to have some unit tests to verify that the tracing works or not. What is the recommended mechanism to do this?

The only thing that I can come up with involves using the TraceEvent nuget library ( to setup a trace session, and then capture in-memory traces. Is there anything simpler that I'm missing?