serilog-extensions-logging icon indicating copy to clipboard operation
serilog-extensions-logging copied to clipboard

Support IEnumerable<KeyValuePair<string, string>> in SerilogLoggerScope

Open admalledd opened this issue 4 years ago • 0 comments
trafficstars

In EnrichAndCreateScopeItem() if my TState was originally created as Dictionary<string, string> the if statement fails to pivot my items into LogEvent.Properties as expected.

Similar to #186 but not quite, though if work on either is done, probably best to do both enhancements?

A reason why I am using <string, string> is that I want to be sure at time of BeginScope that all key/values are properly string-ified as expected for eventual SQL (or other tablized, like Splunk, AzureTableStorage...) column-store.

admalledd avatar Jul 22 '21 22:07 admalledd