Listeners

The following trace listeners are provided by the .NET Framework and the Essential.Diagnostics extensions.

BufferedEmailTraceListenerEX Writes trace events to an Email message sent at the end of the host process.
ColoredConsoleTraceListenerEX Writes formatted trace events to the console in color based on the type.
ConsoleTraceListener Writes trace events to the console
DefaultTraceListener
DelimitedListTraceListener Writes trace events to a file as a delimited list.
DiagnosticMonitorTraceListener Part of Microsoft.WindowsAzure.Diagnostics; writes traces to Azure logs
EmailTraceListenerEX Writes trace events to Email messages sent asynchronously.
EventLogTraceListener Writes trace events to the Windows Event Log
EventProviderTraceListener
EventSchemaTraceListener
FileLogTraceListener Writes trace events to a file with advanced options for file rotation and output format.
FlatFileTraceListener1
FormattedEventLogTraceListener1
InMemoryTraceListenerEX Writes traces to an in-memory array.
RollingFileTraceListenerEX Trace listener that writes formatted messages to a text file, rolling to a new file based on a filename template (usually including the date).
RollingXmlTraceListenerEX Trace listener that writes E2ETraceEvent XML fragments to a text file, rolling to a new file based on a filename template (usually including the date).
SeqTraceListenerEX Writes trace information to a Seq server.
SqlDatabaseTraceListenerEX Writes trace information to a SQL database.
TextWriterTraceListener Writes trace events to a simple file. Recommended you at least use FileLogTraceListener instead.
WebPageTraceListener Forwards trace events to the ASP.NET trace output.
WMITraceListener1
XmlWriterTraceListener Writes events in XML format, suitable for import into the Service Trace Viewer utility.


Note: 1 These trace listeners from the Enterprise Library Logging Application Block can also be used directly with system.diagnostics (for details see http://msdn.microsoft.com/en-us/library/ff664735%28v=PandP.50%29.aspx).

Last edited Feb 8 at 9:58 AM by sgryphon, version 11

Comments

No comments yet.