5
Using Logging to Identify Errors
In this chapter, we will begin to learn about the logging tools that .NET provides us with. A logger is one of the tools that developers must use to debug an application or understand its failure in production. The log library has been built into ASP.NET with several features enabled by design. The purpose of this chapter is to delve into the things we take for granted and add more information as we go.
The themes we will touch on in this chapter are as follows:
- Exploring logging in .NET
- Leveraging the logging framework
- Storing a structured log with Serilog
Technical requirements
As reported in the previous chapters, it will be necessary to have the .NET 6 development framework.
There are no special requirements ...
Get Mastering Minimal APIs in ASP.NET Core 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.