Skip to content

Capability to disable structured logging #45407

Open
@commonquail

Description

@commonquail

Thank you for the new integrated structured logging in Spring Boot 3.4. I have been very satisfied with its behaviour and the ergonomics of using it contrasted with having to wire that up, myself.

I would like to be able to explicitly disable it, though. I have a situation where, for safety purposes, the setting is distributed widely with

logging.structured.format.console=ecs

for correct default behaviour, but that leads to developers being unable to view plain text logs anywhere, namely during development, on account of the settings having no non-structured override option. The JSON logs are a lot more difficult to parse so that one use case has suffered considerably.

Before 3.4, we relied on a local

logging.config=

to disable a similarly distributed configuration and that worked well enough. Unfortunately there is no analogue for logging.structured.format.console that lets us do the same.

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