Module ch.qos.logback.classic
Package ch.qos.logback.classic.servlet
Class LogbackServletContextListener
java.lang.Object
ch.qos.logback.classic.servlet.LogbackServletContextListener
- All Implemented Interfaces:
jakarta.servlet.ServletContextListener
,EventListener
public class LogbackServletContextListener
extends Object
implements jakarta.servlet.ServletContextListener
Allows for graceful shutdown of the
LoggerContext
associated with
this web-app.- Since:
- 1.1.10
- Author:
- Ceki Gulcu
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
contextDestroyed
(jakarta.servlet.ServletContextEvent sce) void
contextInitialized
(jakarta.servlet.ServletContextEvent sce)
-
Constructor Details
-
LogbackServletContextListener
public LogbackServletContextListener()
-
-
Method Details
-
contextInitialized
- Specified by:
contextInitialized
in interfacejakarta.servlet.ServletContextListener
-
contextDestroyed
- Specified by:
contextDestroyed
in interfacejakarta.servlet.ServletContextListener
-