Package ch.qos.logback.classic.servlet
Class LogbackServletContextListener
- java.lang.Object
-
- ch.qos.logback.classic.servlet.LogbackServletContextListener
-
- All Implemented Interfaces:
EventListener
,ServletContextListener
public class LogbackServletContextListener extends Object implements ServletContextListener
Allows for graceful shutdown of theLoggerContext
associated 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 void
contextDestroyed(ServletContextEvent sce)
Notification that the servlet context is about to be shut down.void
contextInitialized(ServletContextEvent sce)
Notification that the web application initialization process is starting.
-
-
-
Method Detail
-
contextInitialized
public void contextInitialized(ServletContextEvent sce)
Description copied from interface:ServletContextListener
Notification that the web application initialization process is starting. All ServletContextListeners are notified of context initialization before any filter or servlet in the web application is initialized.- Specified by:
contextInitialized
in interfaceServletContextListener
- Parameters:
sce
- Information about the ServletContext that was initialized
-
contextDestroyed
public void contextDestroyed(ServletContextEvent sce)
Description copied from interface:ServletContextListener
Notification that the servlet context is about to be shut down. All servlets and filters have been destroy()ed before any ServletContextListeners are notified of context destruction.- Specified by:
contextDestroyed
in interfaceServletContextListener
- Parameters:
sce
- Information about the ServletContext that was destroyed
-
-