Package ch.qos.logback.classic.servlet
Class LogbackServletContextListener
- java.lang.Object
-
- ch.qos.logback.classic.servlet.LogbackServletContextListener
-
- All Implemented Interfaces:
java.util.EventListener,ServletContextListener
public class LogbackServletContextListener extends java.lang.Object implements ServletContextListener
Allows for graceful shutdown of theLoggerContextassociated with this web-app.- Since:
- 1.1.10
-
-
Constructor Summary
Constructors Constructor Description LogbackServletContextListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcontextDestroyed(ServletContextEvent sce)voidcontextInitialized(ServletContextEvent sce)
-
-
-
Method Detail
-
contextInitialized
public void contextInitialized(ServletContextEvent sce)
- Specified by:
contextInitializedin interfaceServletContextListener
-
contextDestroyed
public void contextDestroyed(ServletContextEvent sce)
- Specified by:
contextDestroyedin interfaceServletContextListener
-
-