Skip to content

Commit

Permalink
Merge pull request #34 from /issues/32
Browse files Browse the repository at this point in the history
Better ToString for CustomAttributesLogScope
  • Loading branch information
ckuetbach authored Jul 1, 2024
2 parents fe56390 + c45a6f6 commit 07e8db4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public CustomAttributesLogScope(string name, Dictionary<string, object> items)

public override string ToString()
{
return $"CustomAttributesLogScope:{Name} => Items: {Items.Select(i=>i.Key + ":" + i.Value)+";"}";
return $"CustomAttributesLogScope:{Name} => Items: {string.Join(", ", Items.Select(i => $"'{i.Key}:{i.Value}'"))}";
}
}
}

0 comments on commit 07e8db4

Please sign in to comment.