.Net core logging info is abit out of date



I find that Microsoft .Net core logging documentation is a bit out of date for Log Level. Somehow if we set to Log level to Warning, it will not show logs on "Information level". It will show Error log level. This only if we're calling this command here in the startup.cs.

 loggerFactory.AddConsole(Configuration.GetSection("Logging"));

appsettings.json

{
  "Logging": {
    "IncludeScopes": false,
    "LogLevel": {
      "Default": "Warning"
    }
  }
}

The docs had it reversed. 

Adding a serilog logger, will logs everything and this doesn't applies. 


Comments

Popular posts from this blog

gemini cli getting file not defined error

NodeJS: Error: spawn EINVAL in window for node version 20.20 and 18.20

vllm : Failed to infer device type