Interview Tips Interview Tips, Interview Questions and Answers

16Aug/100

Define Listeners collection of Trace and Debug objects.

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.