Class Log4jConfigurer

  • All Implemented Interfaces:
    EventListener, javax.servlet.ServletContextListener

    public class Log4jConfigurer
    extends org.springframework.web.util.WebAppRootListener
    A ServletContextListener to initialize log4j2 logging.
    Author:
    Matthias Müller
    • Constructor Detail

      • Log4jConfigurer

        public Log4jConfigurer()
    • Method Detail

      • contextInitialized

        public void contextInitialized​(javax.servlet.ServletContextEvent sce)
        Specified by:
        contextInitialized in interface javax.servlet.ServletContextListener
        Overrides:
        contextInitialized in class org.springframework.web.util.WebAppRootListener
      • contextDestroyed

        public void contextDestroyed​(javax.servlet.ServletContextEvent sce)
        Specified by:
        contextDestroyed in interface javax.servlet.ServletContextListener
        Overrides:
        contextDestroyed in class org.springframework.web.util.WebAppRootListener