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 ...