I use the following code to initialize and reload logback configuration :
LoggerContext lc = (LoggerContext) LoggerFactory.getILoggerFactory();
JoranConfigurator configurator = new JoranConfigurator();
I have a turbofilter that needs to do some stuff when stopped. Though, the stop() method is not called in that case. So I added the following code before the shutdownandreset :
TurboFilter tbf = lc.getFirstTurboFilter();
while(tbf != null)
This is the only workaround I found. Is there any way to do better ?