Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Simplify console logging with MDC #41207

@ahus1

Description

@ahus1

Description

When introducing tracing, KC introduced to log some context information on the console by naming explicitly the span and the trace ID.

In #39812, we added %X that would log all MDC parameters when enabling mdc logging, and would it be more general.

This should become the new default console log format.

Discussion

No response

Motivation

This is a breaking change, and we would add it in KC 27. Only having one log console format would simplify our code, and the log parsing of users because the log format wouldn't depend on specific features enabled.

Details

Users who prefer the old log format can still provide the preferred pattern as a parameter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions