Class Log4jShutdownOnContextDestroyedListener

java.lang.Object
org.apache.logging.log4j.web.Log4jShutdownOnContextDestroyedListener
All Implemented Interfaces:
EventListener, javax.servlet.ServletContextListener

public class Log4jShutdownOnContextDestroyedListener extends Object implements javax.servlet.ServletContextListener
  • Field Details

    • DEFAULT_STOP_TIMEOUT

      private static final int DEFAULT_STOP_TIMEOUT
      See Also:
    • DEFAULT_STOP_TIMEOUT_TIMEUNIT

      private static final TimeUnit DEFAULT_STOP_TIMEOUT_TIMEUNIT
    • KEY_STOP_TIMEOUT

      private static final String KEY_STOP_TIMEOUT
      See Also:
    • KEY_STOP_TIMEOUT_TIMEUNIT

      private static final String KEY_STOP_TIMEOUT_TIMEUNIT
      See Also:
    • LOGGER

      private static final Logger LOGGER
    • servletContext

      private javax.servlet.ServletContext servletContext
    • initializer

      private Log4jWebLifeCycle initializer
  • Constructor Details

    • Log4jShutdownOnContextDestroyedListener

      public Log4jShutdownOnContextDestroyedListener()
  • Method Details

    • contextInitialized

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

      public void contextDestroyed(javax.servlet.ServletContextEvent event)
      Specified by:
      contextDestroyed in interface javax.servlet.ServletContextListener