The following trace listeners are provided by the .NET Framework and the Essential.Diagnostics extensions.
BufferedEmailTraceListener | Writes trace events to an Email message sent at the end of the host process. |
ColoredConsoleTraceListener | 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 |
EmailTraceListener | 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 | |
InMemoryTraceListener | Writes traces to an in-memory array. |
RollingFileTraceListener | Trace listener that writes formatted messages to a text file, rolling to a new file based on a filename template (usually including the date). |
RollingXmlTraceListener | 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). |
SeqTraceListener | Writes trace information to a Seq logging server. |
SqlDatabaseTraceListener | 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. |
These trace listeners from the Enterprise Library Logging Application Block can also be used directly with System.Diagnostics (for details see
).
Guidance on considerations when implementing logging and other instrumentation for your project: