Package org.appng.core.controller
Class Log4jConfigurer
- java.lang.Object
-
- org.springframework.web.util.WebAppRootListener
-
- org.appng.core.controller.Log4jConfigurer
-
- All Implemented Interfaces:
EventListener
,javax.servlet.ServletContextListener
public class Log4jConfigurer extends org.springframework.web.util.WebAppRootListener
AServletContextListener
to initialize log4j2 logging.- Author:
- Matthias Müller
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
LOG4J_PROPERTIES
static String
WEB_INF
-
Constructor Summary
Constructors Constructor Description Log4jConfigurer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
contextDestroyed(javax.servlet.ServletContextEvent sce)
void
contextInitialized(javax.servlet.ServletContextEvent sce)
-
-
-
Field Detail
-
LOG4J_PROPERTIES
protected static final String LOG4J_PROPERTIES
- See Also:
- Constant Field Values
-
WEB_INF
public static final String WEB_INF
- See Also:
- Constant Field Values
-
-
Method Detail
-
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent sce)
- Specified by:
contextInitialized
in interfacejavax.servlet.ServletContextListener
- Overrides:
contextInitialized
in classorg.springframework.web.util.WebAppRootListener
-
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent sce)
- Specified by:
contextDestroyed
in interfacejavax.servlet.ServletContextListener
- Overrides:
contextDestroyed
in classorg.springframework.web.util.WebAppRootListener
-
-