I did this:
public static IWebHost BuildWebHost(string[] args)
{
return WebHost.CreateDefaultBuilder(args)
.UseStartup<Startup>()
.UseUrls("http://0.0.0.0:5000")
.ConfigureLogging(ConfigureLogging)
.Build();
}
private static void ConfigureLogging(WebHostBuilderContext hostingContext, ILoggingBuilder logging)
{
logging.ClearProviders();
}
And my appsettings.json:
{
}
But still.. I get exceptions logged to Console - can somebody explain why? Pointers?

ConfigureLogging? Just having a method like that will not just disable logging…Serilogbut I am not currently, step 1 is to remove all logging from the framework/CLR/Kestrel - then I will add ONLY serilog Json logging.