-
Notifications
You must be signed in to change notification settings - Fork 133
Closed
Labels
Description
Asp.Net Core
Error: System.InvalidOperationException: 'No LoggingLevelSwitch has been declared with name "Debug". You might be missing a section "LevelSwitches":{"Debug":"InitialLevel"}'
.UseSerilog((hostingContext, loggerConfiguration) => {
loggerConfiguration.ReadFrom.Configuration(hostingContext.Configuration);
}); "Serilog": {
"MinimumLevel": {
"Default": "Debug",
"Override": {
"Microsoft": "Warning",
"System": "Warning",
"Microsoft.AspNetCore.Authentication": "Information"
}
},
"WriteTo:ConsoleSublogger": {
"Name": "Logger",
"Args": {
"configureLogger": {
"WriteTo": [
{
"Name": "LiterateConsole",
"Args": {
"outputTemplate": "DevConf [{Timestamp:HH:mm:ss} {Level}] {SourceContext}{NewLine}{Message:lj}{NewLine}{Exception}{NewLine}"
}
}
]
},
"restrictedToMinimumLevel": "Debug"
}
},
"Enrich": [ "FromLogContext", "WithMachineName", "WithThreadId" ],
"Properties": {
"Application": "WashuIdentityServer"
}
},I dont see anywhere that I tell it to use a switch. Also, I dont see this on the README and I don't see it in the samples.