Log providers

Log providers are the bridge between the application code that write logs and the output medium to which the logs will be written. There are a few providers that offer out-of-the-box solutions, such as Console, Debug, EventSource, and more that you can find at https://docs.microsoft.com/en-us/aspnet/core/fundamentals/logging/?view=aspnetcore-2.1#built-in-logging-providers. There are also third-party providers, such as serilog (https://github.com/serilog/serilog-aspnetcore) and NLog (https://github.com/NLog/NLog.Extensions.Logging), that give more control about the logging configuration and destinations.

By default, the ASP.NET Core logging framework sets the logging providers to Debug (the output debug window) and Console (the ...

Get Hands-On Full-Stack Web Development with ASP.NET Core now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.