Hi,
I've created a custom event source derived from System.Diagnostics.Tracing.EventSource. I also generated log (.etl) files using the Windows Performance Recorder and running my instrumented application. I can see the events in Windows Performance Analyzer, all the data is there. I then tried to read the log data into my own custom application using System.Diagnostics.Eventing.Reader.EventLogReader. The events are read in but I cannot access any of the metadata like the Task, Opcode or Kewords and I also can’t get to the argument data (the most important thing). I know raw values for Level, Task, Opcode and Keywords is present but I’d like to get at the readable names like WPA does.
Anyone have any idea how I can get this to work?
Dumping an EventLogRecord to xml I get the following.
<Event xmlns='http://schemas.microsoft.com/win/2004/08/events/event'><System><Provider Name='MyEventSource' Guid='{847c4417-d05a-5de2-14c2-c07ded952420}'/><EventID>3</EventID><Version>0</Version><Level>4</Level><Task>2</Task><Opcode>1</Opcode><Keywords>0xf00000000010</Keywords><TimeCreated SystemTime='2013-09-12T20:36:41.097430200Z'/><EventRecordID>321</EventRecordID><Correlation/><Execution ProcessID='11220' ThreadID='14952' ProcessorID='3' KernelTime='0' UserTime='0'/><Channel></Channel><Computer>xxxxxxxxxxxxxxxx</Computer><Security/></System><ProcessingErrorData><ErrorCode>15003</ErrorCode><DataItemName></DataItemName><EventPayload></EventPayload></ProcessingErrorData></Event>