Skip to content

Allow structure logging "name already written" errors caused by MDC to be logged as warnings #45217

Description

@philwebb

As discussed in #45063, currently an MDC name that has already been used will throw an IllegalStateException and prevent that message from being logged at all. It would be better if we allowed the structured logging to continue without the offending element and issued a warning instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions