concept log framework in category .net

appears as: logging framework, logging frameworks
.NET Core in Action

This is an excerpt from Manning's book .NET Core in Action.

10.2. Using a logging framework instead of writing to the console

Your air conditioner controller program may be world-ready, but it writes all logs to the console. It turns out that the air conditioner doesn’t have a console. You’ll need to write logs to different places, like files and external web services. Rather than write each log several times in the code depending on where it’s supposed to go, you can use a logging framework and write the log once. Then multiple subscribers can each work with the log messages independently. But you must maintain your code’s world-readiness while using logging frameworks.