fixes logging configuration
This commit is contained in:
parent
647a1e44bd
commit
8718b67176
@ -9,7 +9,10 @@ using PiwigoDirectorySync.Services;
|
||||
using Spectre.Console.Cli;
|
||||
|
||||
var registrations = new ServiceCollection();
|
||||
registrations.AddLogging(l => l.AddSimpleConsole(c =>
|
||||
|
||||
registrations.AddSingleton(AppSettings.Config);
|
||||
registrations.AddLogging(l => l.AddConfiguration(AppSettings.Config.GetSection("Logging"))
|
||||
.AddSimpleConsole(c =>
|
||||
{
|
||||
c.SingleLine = true;
|
||||
c.IncludeScopes = true;
|
||||
|
@ -2,8 +2,8 @@
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Debug",
|
||||
"System": "Information",
|
||||
"Microsoft": "Information"
|
||||
"System": "Warning",
|
||||
"Microsoft": "Warning"
|
||||
}
|
||||
},
|
||||
"ConnectionStrings": {
|
||||
|
Loading…
Reference in New Issue
Block a user