I can not understand - like doing everything right. But for some reason, the .NET Core writes messages of the Information level. Although I clearly indicated in the settings to write only Error . Here is part of Program.cs :
public static IWebHost BuildWebHost(string[] args) => WebHost.CreateDefaultBuilder(args) .UseStartup<Startup>() .ConfigureLogging((hostingContext, logging) => { logging.AddConfiguration(hostingContext.Configuration.GetSection("Logging")); }) .Build(); The appsettings.json looks like this:
"Logging": { "IncludeScopes": false, "LogLevel": { "Default": "Error" } } What am I doing wrong?
appsettings.json) just.ConfigureLogging(logging => logging.SetMinimumLevel(LogLevel.Error))? - Vadim Ovchinnikov