diff --git a/src/Serilog.Extensions.Logging/Extensions/Logging/LoggerProviderCollectionSink.cs b/src/Serilog.Extensions.Logging/Extensions/Logging/LoggerProviderCollectionSink.cs index 2a3a586..0febb52 100644 --- a/src/Serilog.Extensions.Logging/Extensions/Logging/LoggerProviderCollectionSink.cs +++ b/src/Serilog.Extensions.Logging/Extensions/Logging/LoggerProviderCollectionSink.cs @@ -29,7 +29,7 @@ public LoggerProviderCollectionSink(LoggerProviderCollection providers) public void Emit(LogEvent logEvent) { - string? categoryName = null; + string categoryName = "None"; EventId eventId = default; if (logEvent.Properties.TryGetValue("SourceContext", out var sourceContextProperty) &&