The key characteristics of logging

The ASP.NET Core logging system is characterized by some key attributes that are always present in each log record. Furthermore, it is essential to keep logs as coherent as possible. The crucial components of the ASP.NET Core logging system are the log category, the log level, the log event id, and the log message.

The log category is specified when the ILogger<T> interface is initialized. It is an essential part of the logging process because it identifies the component that is emitting the log record. The log category usually corresponds to the type or class that's firing the log records. Let's use the ItemController class of the catalog service as an example. The log category is defined during the ILogger ...

Get Hands-On RESTful Web Services with ASP.NET Core 3 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.