Logging providers
To give you an idea of the possible built-in logging providers, here is a list from the official documentation (see the Further reading section at the end of this chapter):
- Console: The
Consoleprovider sends log messages, typically seen in the terminal, to the standard output stream (stdout). - Debug: The
Debugprovider writes log messages to a debugger monitor, such as the Visual Studio Output window, using theSystem.Diagnostics.Debugclass. - EventSource: The
EventSourceprovider is a fast, structured logging solution built into the .NET Runtime. The logs (or traces) can be consumed by advanced monitoring tools and used for performance analysis. It leverages theSystem.Diagnostics.Tracing.EventSourceclass under the hood. - EventLog: the
EventLogprovider writes logs to the Windows event log. - ApplicationInsights: This provider integrates with Azure Application Insights.
The following is a list of third-party logging providers...