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 Details

  • Method Details

    • contextInitialized

      public void contextInitialized(jakarta.servlet.ServletContextEvent sce)
      Specified by:
      contextInitialized in interface jakarta.servlet.ServletContextListener
    • contextDestroyed

      public void contextDestroyed(jakarta.servlet.ServletContextEvent sce)
      Specified by:
      contextDestroyed in interface jakarta.servlet.ServletContextListener