Hands-On Full-Stack Web Development with ASP.NET Core
by Tamir Dresher, Amir Zuker, Shay Friedman
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access