Initially posted in dotnet/diagnostics#1905
@maryamariyan Do you know why the JSON logger requires IReadOnlyCollection<KeyValuePair<string, object>> for scope data? Looking at other loggers, they are perfectly content with IEnumerable<KeyValuePair<string, object>>? If this wasn't intentional, we should fix this in the logger.
|
if (scope is IReadOnlyCollection<KeyValuePair<string, object>> scopes) |
Initially posted in dotnet/diagnostics#1905
runtime/src/libraries/Microsoft.Extensions.Logging.Console/src/JsonConsoleFormatter.cs
Line 112 in f9a8abc