diff --git a/src/CMSMicroservice.WebApi/Program.cs b/src/CMSMicroservice.WebApi/Program.cs index 2b90023..a3aac6b 100644 --- a/src/CMSMicroservice.WebApi/Program.cs +++ b/src/CMSMicroservice.WebApi/Program.cs @@ -42,7 +42,7 @@ var logger = new LoggerConfiguration() // AutoCreateSqlTable = true // }) .WriteTo.Seq(seqServerUrl, - apiKey: string.IsNullOrEmpty(seqApiKey) ? null : seqApiKey, + apiKey: string.IsNullOrEmpty(seqApiKey) ? null : seqApiKey, controlLevelSwitch: levelSwitch) .CreateLogger(); builder.Logging.AddSerilog(logger);