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?

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

  2. logging.console configures logging facility print out log entries in console, there others provider options , can write custom 1 well.

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

Popular posts from this blog

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -

ios - Change Storyboard View using Seague -