Repository navigation
Extensions.Logging: JsonConsoleFormatter serializes scope and state properties using native json type - #40067
Conversation
|
Tagging subscribers to this area: @maryamariyan |
3a0b737 to
5587060
Compare
5587060 to
63abb17
Compare
307be3d to
0a5209a
Compare
|
I've addressed the feedback and refactored the tests to add coverage for nullables. |
|
Test failures seems unrelated |
458931c to
1297fe0
Compare
|
Feedback should be addressed now and I've rebased it |
|
There are some Logging.Console.Tests failures to look at here: https://dev.azure.com/dnceng/public/_build/results?buildId=757755&view=ms.vss-test-web.build-test-results-tab&runId=23523088&resultId=101163&paneView=debug e.g. for: Error Message: StackTrace: |
1297fe0 to
6bf9992
Compare
|
It's looking good to me. You'll need to resolve the conflict now. |
c585684 to
b476d61
Compare
|
I've rebased it but there are some unrelated tests failing in CI |
|
Failure is #40627 |
|
Thank you for the help! |
This PR changes the
JsonConsoleFormatterto convert the values of the k/v in state and scope to json native types when it is a built-in value type.I haven't found a way to remove converters easily from the JsonSerializer.
I used the JsonSerializer as I didn't want to reimplement the logic.
Should I reimplement the serialization logic to avoid the cost of the JsonSerializer? Is there already something available I can reuse?
Should I add support for NullableTypes?
Fixes #39870
/cc @maryamariyan