jonwagner / EventSourceProxy

EventSourceProxy (ESP) is the easiest way to add scalable Event Tracing for Windows (ETW) logging to your .NET program
Other
97 stars 20 forks source link

[Query] How to use TracingProxy to write into Windows event log using the EventSourceProxy.NuGet namespace #34

Closed samarthraman closed 9 years ago

samarthraman commented 9 years ago

I am trying to implement tracing for an existing code base and came across the EventSourceProxy. By using the TracingProxy class, I am able to inject tracing and the required method data shows up properly when I use logman/perfview combo. Now what I am trying to do is to have these events publish to the event log and based on the thread here (https://github.com/jonwagner/EventSourceProxy/issues/15), I switched to using the EventSourceProxy.NuGet namespace but I am unable to get the events publish to event log

I tried registering the event by creating the manifest and see the entry under the "Application and service logs" in EventViewer but there were no events captured. I even tried overriding the default implementation in the EventAttributeProvider class and default the channel attribute to Admin. The thing that I think might be missing is the manifest.dll class that is required as the resource file and message file as part of manifest installaton.

Any help on this will be greatly appreciated. Thanks

jonwagner commented 9 years ago

I haven't tried getting ESP events into the EventLog. I'll have to find some time to try it out.

samarthraman commented 9 years ago

Looking forward to it, thanks a lot Jon.

jonwagner commented 9 years ago

Sorry it took so long to get back to this.

You can get the manifest from the GenerateProxyManifest tool. You don't need the DLL unless you're localizing resources.

Instructions are in the wiki:

https://github.com/jonwagner/EventSourceProxy/wiki/Getting-the-EventSource-Manifest-or-GUID