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
Console
provider sends log messages, typically seen in the terminal, to the standard output stream (stdout). - Debug: The
Debug
provider writes log messages to a debugger monitor, such as the Visual Studio Output window, using theSystem.Diagnostics.Debug
class. - EventSource: The
EventSource
provider 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.EventSource
class under the hood. - EventLog: the
EventLog
provider 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...