Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A valid ETW Trace that would generate events
using System.Diagnostics.Tracing;
namespace ETWSample
{
public sealed class TestEvent : EventSource
{
static public TestEvent Trace = new TestEvent();
public void WriteEvent(string content)
{
WriteEvent(1, content);
}
public void WriteDetailedEvent(int id,string content)
{
WriteEvent(2,id, content);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.