This repository was archived by the owner on Dec 13, 2018. It is now read-only.
This repository was archived by the owner on Dec 13, 2018. It is now read-only.
Configuring logging from appSettings.json #437
Closed
Description
The Console logger has the following method which allows you to configure it from the appSettings.json file:
loggerFactory.AddConsole(configuration.GetSection("Logging"));
"Logging": {
"IncludeScopes": true,
"LogLevel": {
"Default": "Debug",
"System": "Information",
"Microsoft": "Information"
}
}
Why do the Debug, EventLog and other loggers not have similar overloads? What was the intention behind that decision. In my case, I would like a configuration section in the JSON for each log provider so that they could be configured independently. What would be the best way to achieve this?