In our last installment we found our hero investigating the tracing changes found in Connector/Net 6.2. This time we’ll take a closer look at the format of the trace data and how developers can use that information to write new and interesting trace listeners.
Understanding the plumbing
The first thing we need to understand is a little about how the trace messages are routed. The main method we are interested in is TraceSource.TraceEvent. Here is the signature.
public void TraceEvent( TraceEventType eventType, int id, string format, params Object args )
All the other TraceSource methods like TraceInformation eventually boil down to a call to …[Read more]