org.apache.jetspeed.webapp.logging
Class Log4JConfigurator

java.lang.Object
  extended by org.apache.jetspeed.webapp.logging.Log4JConfigurator
All Implemented Interfaces:
EventListener, javax.servlet.ServletContextListener

public class Log4JConfigurator
extends Object
implements javax.servlet.ServletContextListener


Field Summary
private  org.apache.log4j.Hierarchy isolatedHierarchy
           
private static org.apache.commons.logging.Log log
           
static String LOG4J_CONFIG_FILE
          The optional web.xml context parameter name for the Log4J Config File (location).
static String LOG4J_CONFIG_FILE_DEFAULT
          The default value for the Log4J Config File (location)
static String LOG4J_CONFIG_WEB_APPLICATION_ROOT_KEY
          The optional web.xml context parameter name for the Log4J Config webApplicationRoot (property)
static String LOG4J_CONFIG_WEB_APPLICATION_ROOT_KEY_DEFAULT
          The default value for the Log4J Config webApplicationRoot (property)
 
Constructor Summary
Log4JConfigurator()
           
 
Method Summary
 void contextDestroyed(javax.servlet.ServletContextEvent event)
           
 void contextInitialized(javax.servlet.ServletContextEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG4J_CONFIG_FILE

public static final String LOG4J_CONFIG_FILE
The optional web.xml context parameter name for the Log4J Config File (location). The specified location is interpreted as begin (webapp) context relative.

See Also:
Constant Field Values

LOG4J_CONFIG_FILE_DEFAULT

public static final String LOG4J_CONFIG_FILE_DEFAULT
The default value for the Log4J Config File (location)

See Also:
Constant Field Values

LOG4J_CONFIG_WEB_APPLICATION_ROOT_KEY

public static final String LOG4J_CONFIG_WEB_APPLICATION_ROOT_KEY
The optional web.xml context parameter name for the Log4J Config webApplicationRoot (property)

See Also:
Constant Field Values

LOG4J_CONFIG_WEB_APPLICATION_ROOT_KEY_DEFAULT

public static final String LOG4J_CONFIG_WEB_APPLICATION_ROOT_KEY_DEFAULT
The default value for the Log4J Config webApplicationRoot (property)

See Also:
Constant Field Values

isolatedHierarchy

private org.apache.log4j.Hierarchy isolatedHierarchy

log

private static org.apache.commons.logging.Log log
Constructor Detail

Log4JConfigurator

public Log4JConfigurator()
Method Detail

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


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.