Chapter 7: Logging in .NET 5

Logging helps you to record your application's behavior for different data at runtime and you can control what you want to record and where you want to record. Once the development of your feature is complete, you would unit test it thoroughly on a development PC, deploy it in a test environment for thorough integration testing, then deploy it in production, and finally, open it up for a large number of users. The context in which your application is running, such as servers, data, load, and so on, is different in test environments and production environments when you compare it with the development box, and you might face unexpected issues in the test and production environments in the initial days.

This is where ...

Get Enterprise Application Development with C# 9 and .NET 5 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.