Skip to content

Align logback's behavior with log4j2 when getting a logger that doesn't exist #21292

Closed
@mbhave

Description

@mbhave

Currently, if a GET request to the /loggers endpoint is made for a logger that doesn't exist, logback will create the logger. Log4j2 returns a 404. It would be nice to align the two. Logback has a exists() method which we can check before returning the logger configuration. This would also prevent a GET request from having a side-effect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions