Skip to content

Enhance JsonConsoleFormatter to be configurable and avoid to duplicate information #110373

@rmannibucau

Description

@rmannibucau

Description

By default the json console formatter will create a message field and will duplicate it within the state and setting IncludeState=false is quite useless there.

What is desired is to be able to switch between both but ultimately not have both (either be fully structured or precomputed).

Some new options can solve it easily so guess it is the way to go.

Reproduction Steps

Just log in json over the console

Expected behavior

message is not in the state

Actual behavior

message is both at the root and within nested state objects

Regression?

No response

Known Workarounds

custom provider but highly undesired

Configuration

No response

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions