For years, Connector/Net has been a key part of any MySQL & .NET developer’s toolbox. Tracing is also a key part of a developer’s life and Connector/Net has always output trace messages.
This first post is a review of .NET tracing systems and how we changed our trace output. The second post will cover how developers can use the new tracing format to develop new applications.
Tracing in .NET 1.x
.NET shipped with a very simple tracing system. You have a static class named Trace that has static methods such as Write and WriteLine. An application can use code like the following to output a message to the trace log.
Now that we have output our message, how do we direct it somewhere? You do that with listeners. There are a few standard listeners[Read more...]