![]() ![]() The biggest of those is being able to actually write your logs to a file on disk! Where is the LoggerFactory Created?įor an ASP.NET Core, you first see the ILoggerFactory within your Startup class that looks something like this below. ![]() By using it in this way, it also allows you to leverage all of the power of a library like NLog to overcome any limitations the built-in API may have. So you can use the ILoggerFactory and it ends up working sort of like Common.Logging does as a facade above an actual logging library. Other logging frameworks like NLog and Serilog have even written providers for it. ![]() The logging API supports multiple output providers and is extensible to potentially be able to send your application logging anywhere. It is designed as a logging API that developers can use to capture built-in ASP.NET logging as well as for their own custom logging. Basics of the .NET Core Logging With LoggerFactory
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |