TraceListener

Team-Fly    

 
Application Development Using Visual Basic and .NET
By Robert J. Oberg, Peter Thorsteinson, Dana L. Wyatt
Table of Contents
Appendix B.  Tracing and Debugging in .NET


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 .


Team-Fly    
Top
 


Application Development Using Visual BasicR and .NET
Application Development Using Visual BasicR and .NET
ISBN: N/A
EAN: N/A
Year: 2002
Pages: 190

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net