Skip to content

Instantly share code, notes, and snippets.

@naveensrinivasan
Created May 4, 2015 01:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save naveensrinivasan/a1fcd0ec78d2473499d5 to your computer and use it in GitHub Desktop.
Save naveensrinivasan/a1fcd0ec78d2473499d5 to your computer and use it in GitHub Desktop.
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