Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

DelegatingLogbackAppender shut down too early #46

Open
mnoky opened this issue Aug 23, 2017 · 0 comments
Open

DelegatingLogbackAppender shut down too early #46

mnoky opened this issue Aug 23, 2017 · 0 comments

Comments

@mnoky
Copy link

mnoky commented Aug 23, 2017

I've got a Spring application (not Spring Boot) where I've integrated logback-extensions in order to programatically configure appenders. For example, the console appender is only configured for the "dev" profile (as per the logback-extensions wiki page using a DelegatingLogbackAppender).

This works great except the case where there is an error during context initialization. Then, Spring seems to destroy the delegated appender before the final error message gets logged! (e.g. "ERROR org.springframework.web.context.ContextLoader - Context initialization failed" followed by a stack trace).

Is there any way to work around this limitation and somehow delay the destruction of this appender?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant