 package basearch.integration;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class ApplicationInitializerListener implements ServletContextListener {

	private static final Logger logger = LoggerFactory.getLogger(ApplicationInitializerListener.class);

	@Override
	public void contextDestroyed(ServletContextEvent arg0) {
		logger.debug("Shutting down application...");
	}

	@Override
	public void contextInitialized(ServletContextEvent sce) {
		logger.debug("Starting up application...");
	}

}

@@ -176,16 +176,62 @@
 actory;%0D
+%0Aimport ch.qos.logback.classic.LoggerContext;%0D
 %0A%0D%0Apubli
@@ -528,24 +528,126 @@
 tion...%22);%0D%0A
+%09%09// logback's async appender shutdown%0D%0A%09%09((LoggerContext)LoggerFactory.getILoggerFactory()).stop();%0D%0A
 %09%7D%0D%0A%0D%0A%09@Over

Add shutdown code for logback's async appender