Skip to content

Document logging.register-shutdown-hook and why you may want to enable it #24507

Closed
@joca-bt

Description

@joca-bt

Logback's documentation recommends stopping the context on shutdown to flush the loggers and let appenders terminate properly.
https://logback.qos.ch/manual/appenders.html#AsyncAppender
https://logback.qos.ch/manual/configuration.html#stopContext

This doesn't appear to be happening during LogbackLoggingSystem.cleanUp(). Is there perhaps a reason for Spring Boot not to call stop() on LoggerContext? Are the users expected to do this instead?

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