diff --git a/src/Correlate.Core/Extensions/LoggerExtensions.cs b/src/Correlate.Core/Extensions/LoggerExtensions.cs index 66e2443..16c165f 100644 --- a/src/Correlate.Core/Extensions/LoggerExtensions.cs +++ b/src/Correlate.Core/Extensions/LoggerExtensions.cs @@ -49,5 +49,14 @@ public KeyValuePair this[int index] throw new ArgumentOutOfRangeException(nameof(index)); } } + + /// + /// Returns a representation of the scope items as a list of comma-separated items, + /// matching the default representation provided by the standard Console logger. + /// + public override string ToString() + { + return string.Join(", ", this.Select(kv => $"{kv.Key}:{kv.Value}")); + } } }