|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.logging.log4j.core.web.Log4jContextListener
public class Log4jContextListener
Saves the LoggerContext into the ServletContext as an attribute.
Field Summary | |
---|---|
static String |
LOG4J_CONFIG
The location of the configuration. |
static String |
LOG4J_CONTEXT_ATTRIBUTE
The name of the attribute to use to store the LoggerContext into the ServletContext. |
static String |
LOG4J_CONTEXT_NAME
The name of the LoggerContext. |
Constructor Summary | |
---|---|
Log4jContextListener()
|
Method Summary | |
---|---|
void |
contextDestroyed(javax.servlet.ServletContextEvent event)
Shutdown logging for the web application. |
void |
contextInitialized(javax.servlet.ServletContextEvent event)
Initialize Logging for the web application. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String LOG4J_CONTEXT_ATTRIBUTE
public static final String LOG4J_CONFIG
public static final String LOG4J_CONTEXT_NAME
Constructor Detail |
---|
public Log4jContextListener()
Method Detail |
---|
public void contextInitialized(javax.servlet.ServletContextEvent event)
contextInitialized
in interface javax.servlet.ServletContextListener
event
- The ServletContextEvent.public void contextDestroyed(javax.servlet.ServletContextEvent event)
contextDestroyed
in interface javax.servlet.ServletContextListener
event
- The ServletContextEvent.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |