visual studio - Microsoft.Extensions.Logging.Console unable to understand -
i confused why have package.
microsoft.extensions.logging.console i have 3 questions. 1. logging, whats advantages of logging, , if don't use whats pitfalls.?
2.what logging.console, why have use it?
3.what loggerfactory?
you should have logging facility in application, without log entries hard find runtime bugs there no information on happening in application. not required use it, in production environment must have thing.
logging.console configures logging facility print out log entries in console, there others provider options , can write custom 1 well.
the loggerfactory abstraction "behind hood" redirects log messages installed providers, can have many log outputs want changing application startup.
i recommend read asp net core logging fundamentals documentation
Comments
Post a Comment