In conclusion: It seems to be difficult to log something while an application context is shutting down. Agree, but as you say, it's difficult not impossible, what i suggest is keep the library-behavior same as before, and let the user to decide whether register the LogbackServletContextListener in their environment. with this new 'feature', i was unable to upgrade to new version without add jvm settings(or code changing). |