Enterprise Application Development with C# 10 and .NET 6 - Second Edition
by Ravindra Akella, Arun Kumar Tamirisa, Suneel Kumar Kunani, Bhupesh Guptha Muthiyalu
Chapter 7: Logging in .NET 6
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 it. Once the development of your feature is complete, you can 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 many users. The context in which your application is running (such as servers, data, and load) 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 logging plays a very ...
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