Define Listeners collection of Trace and Debug objects.The Trace and Debug objects contain a Listeners collection. These Listeners collection collect output from the trace statements.
There are three types of predefined listeners: - DefaultTraceListener - TextWriterTraceListener - EventLogTraceListener
DefaultTraceListener: This is default listener and writes trace statements in the Output window. TextWriterTraceListener: can write output to the text file or to the console window. EventLogTraceListener: can write messages to the Event Log.
|