O'Reilly logo

Application Development Using Visual Basic® and .NET by Dana L. Wyatt, Peter Thorsteinson, Robert J. Oberg

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

TraceListener

Classes derived from the abstract class TraceListener represent destinations for the diagnostic output. The TextWriterTraceListener is designed to direct output to a TextWriter, Stream, or FileStream. Console.Out is an example of a commonly used output stream. The EventLogTraceListener class allows you to send output to an EventLog. You can create your own event logs with the EventLog's static method CreateEventSource. The DefaultTraceListener sends output to the debugging output window. Default Debug output can be viewed in Visual Studio .NET's Output window or with utilities (such as DBMon). You can customize where output appears by implementing your own class derived from TraceListener.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required