-
Notifications
You must be signed in to change notification settings - Fork 41.2k
LoggingApplicationListener calls loggingSystem.cleanUp() after nested context was destroyed #4651
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
As described in the guidelines for contributing, we prefer to use GitHub issues only for bugs and enhancements. For general usage questions, please use StackOverflow |
But it seems to be a bug or not? |
Sorry, but I can tell from your description. For example, you haven't described the lifecycle of the nested context in relation to its parent or exactly what it is you're trying to do. |
lifecycle of the nested context is described in code block it is just created and after some action (I think it's no matter what exact action) it is destroyed. I think this is a bug - the Sorry, for confused explanation |
That's much clearer now, thank you. |
Is it right way to cleanUp loggingSystem after nested context was destroyed?
I have next code:
After that I can't get log messages from JUL.
What I'm doing wrong? Is it bug in LoggingApplicationListener or I use wrong way to create nested context?
As workaround - do not send ContextClosedEvent by nested context:
The text was updated successfully, but these errors were encountered: