Closed kevinchalet closed 7 years ago
@DamianEdwards @davidfowl thoughts?
Not sure about this, I thought about it as well but if you configure logging based on the configuration system we'll end up reading appsettings.json
in the Program.Main
which I'm not a fan of. Ideally host configuration and Startup
configuration would remain separate.
Currently, the logging listeners are added in
Startup.Configure
. Ideally, the ASP.NET Core templates should use the newWebHostBuilder.ConfigureLogging
method instead of injectingILoggerFactory
viaStartup.Configure
: