-
Notifications
You must be signed in to change notification settings - Fork 20
Getting Started
Jon Wagner edited this page Mar 4, 2013
·
1 revision
The first thing you need to do is to install the EventSourceProxy package from NuGet:
http://nuget.org/packages/EventSourceProxy
You can also install the package from package manager with:
Install-Package EventSourceProxy
Next, you will want to add logging to some part of your code. There are 3 ways to do it:
- Define a new logging interface (see Implementing a Logging Interface)
- Define a new EventSource and let ESP implement it (see Implementing an EventSource)
- Add logging to an existing interface (see Creating a Tracing Proxy for an Interface)
At this point, your code will support ETW logging. Now you have to turn on logging and start collecting the data. Again, there are a few ways to do this:
- Use PerfView for development performance monitoring (see Using PerfView for ETW Tracing)
- Use LogMan for system-level logging (see Using LogMan for ETW Tracing)
- Use Microsoft Enterprise Library to send trace data elsewhere (see Using EntLib6 ETW Listeners)
When logging is off, there is almost no overhead to the logging infrastructure. When you turn logging on, you can control the amount of data that is collected and the overhead depends on how much you need to log.