Class LogbackServletContextListener

java.lang.Object
com.jk.web.servlets.LogbackServletContextListener
All Implemented Interfaces:
jakarta.servlet.ServletContextListener, EventListener

public class LogbackServletContextListener extends Object implements jakarta.servlet.ServletContextListener
This class is a ServletContextListener responsible for shutting down Log back during the destruction of the web application context
Version:
1.0
Author:
Dr. Jalal H. Kiswani
  • Constructor Details

    • LogbackServletContextListener

      public LogbackServletContextListener()
  • Method Details

    • contextInitialized

      public void contextInitialized(jakarta.servlet.ServletContextEvent sce)
      This method is called when the web application context is initialized.
      Specified by:
      contextInitialized in interface jakarta.servlet.ServletContextListener
      Parameters:
      sce - Specifies the ServletContextEvent associated with context initialization.
    • contextDestroyed

      public void contextDestroyed(jakarta.servlet.ServletContextEvent sce)
      This method is called when the web application context is destroyed.
      Specified by:
      contextDestroyed in interface jakarta.servlet.ServletContextListener
      Parameters:
      sce - Specifies the ServletContextEvent associated with context destruction.