April 2017
Intermediate to advanced
564 pages
24h 7m
English
The .NET Core app models, such as ASP.NET Core, support logging out-of-the-box. Logging can be enabled by injecting the ILoggerFactory instance through the Configure method of the Startup class, and then using that to add providers. There are a few built-in providers available in the Microsoft.Extensions.Logging namespace. For example, to log information at the Console level, we can call the AddConsole method on the instance of LoggerFactory or AddDebug to log information in the Debug window when the application is running under the debug mode.
Following is the list of logging provider's shipped with ASP.NET Core:
This is the sample code snippet to inject the logger ...
Read now
Unlock full access