Created
May 4, 2015 01:06
-
-
Save naveensrinivasan/a1fcd0ec78d2473499d5 to your computer and use it in GitHub Desktop.
A valid ETW Trace that would generate events
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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