Closed idormenco closed 11 months ago
After scaffolding a new project in the file LoggingConfiguration.cs we have the configuration for LoggingLevelSwitch
LoggingConfiguration.cs
LoggingLevelSwitch
public static void AddLoggingConfiguration(this IHostBuilder host, IWebHostEnvironment env) { var loggingLevelSwitch = new LoggingLevelSwitch(); if (env.IsDevelopment()) loggingLevelSwitch.MinimumLevel = LogEventLevel.Warning; if (env.IsProduction()) loggingLevelSwitch.MinimumLevel = LogEventLevel.Information; .... }
I think it should be other way around Warning in Prod and Info in Development.
Commented on the PR in more detail but this will be moot in the next release so I'm going to close this 👍
After scaffolding a new project in the file
LoggingConfiguration.cs
we have the configuration forLoggingLevelSwitch
I think it should be other way around Warning in Prod and Info in Development.