What is logging in ASP.NET Core?
Logging is the framework-supported mechanism for recording diagnostic and operational information about an application. ASP.NET Core provides the ILogger abstraction so application code can write logs without being tightly coupled to a particular logging provider.