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