Skip to content

Commit cec01f6

Browse files
committed
Set default categoryName
1 parent 3f63b63 commit cec01f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Serilog.Extensions.Logging/Extensions/Logging/LoggerProviderCollectionSink.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public LoggerProviderCollectionSink(LoggerProviderCollection providers)
2929

3030
public void Emit(LogEvent logEvent)
3131
{
32-
string? categoryName = null;
32+
string categoryName = "None";
3333
EventId eventId = default;
3434

3535
if (logEvent.Properties.TryGetValue("SourceContext", out var sourceContextProperty) &&

0 commit comments

Comments
 (0)