-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Detect IEnumerable<KeyValuePair<string, object>> in log scopes #215
Detect IEnumerable<KeyValuePair<string, object>> in log scopes #215
Conversation
… write them out instead of the default
…isplay makes sense - Supports multiple scopes each with keyvaluepairs displayed correctly
Codecov Report
@@ Coverage Diff @@
## main #215 +/- ##
==========================================
+ Coverage 99.05% 99.12% +0.06%
==========================================
Files 8 8
Lines 319 342 +23
==========================================
+ Hits 316 339 +23
Misses 3 3
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you also augment one of the new tests you've added with a scope that gets it to hit the uncovered block please?
Sure thing! I added a new test as having a scope type of |
Thanks for the PR George! If you want to give it a whirl from MyGet to just check it's all working as you'd expect, then I'll push 0.1.1 to NuGet.org. https://www.myget.org/feed/martincostello/package/nuget/MartinCostello.Logging.XUnit/0.1.1-beta0189 |
Perfect, was just wondering where I might get it from 😁. Will let you know how it goes! Thanks! |
So as I think you saw, it works well! Happy for you to push to nuget 🙂 |
Thanks very much! |
This PR implements a potential solution from issue #214.
Instead of rendering
=> System.Collections.Generic.KeyValuePair2[System.String,System.Object][]
for scope objects of this type, it renders this:given this log message: