How to Add Custom Logging in ASP.NET Core

ASP.NET Core is pretty flexible, customizable, and extendable. You are able to change almost everything. Even the logging. If you don’t like the built-in logging, you are able to plug in your own logger or an existing logger like log4net, NLog, Elmah. In this post, I’m going to show you how to add a custom logger.
The logger I show you just writes out to the console, but just for one single log level. The feature is to configure different font colors per LogLevel. So this logger is called ColoredConsoleLogger.

Link: https://dzone.com/articles/how-to-add-custom-logging-in-aspnet-core?utm_medium=feed&utm_source=feedpress.me&utm_campaign=Feed%3A+dzone%2Fwebdev