Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Akka.Logger.NLog/NLogLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ private static void LogEvent(LogEvent logEvent, NLogLevel logLevel)

// Add structured logging properties from semantic logging
// This enables NLog layouts and targets to access structured properties by name
if (logEvent.TryGetProperties(out var properties))
if (logEvent.TryGetProperties(out var properties) && properties?.Count > 0)
{
foreach (var prop in properties)
{
Expand Down