You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
snakefoot
changed the title
Change default value for ClearLoggerFilterOptions to true
Change default value for ResetLoggerProviderFilter to true
Feb 28, 2021
snakefoot
changed the title
Change default value for ResetLoggerProviderFilter to true
Change default value for RemoveLoggerFactoryFilter to true
Mar 1, 2021
ILogger<Program>logger=LoggerFactory.Create(builder =>{builder.SetMinimumLevel(LogLevel.Warning);// Explicit LogLevel will not apply to NLogbuilder.AddNLog();}).CreateLogger<Program>();logger.LogInformation("Hello World!");
One could consider changing RemoveLoggerFactoryFilter from a boolean into LoggerFactoryMinimumLevel and when LogLevel.Trace, then it would be the same as RemoveLoggerFactoryFilter = true. And when assigned to (LogLevel?)null then it would be the same as RemoveLoggerFactoryFilter = false.
Thern this pull-request would be changing default-value for LoggerFactoryMinimumLevel from (LogLevel?)null to LogLevel.Trace.
See also #482
The text was updated successfully, but these errors were encountered: