org.apache.avalon.excalibur.logger.log4j
Class Log4JConfigurator

java.lang.Object
  extended by org.apache.log4j.xml.DOMConfigurator
      extended by org.apache.avalon.excalibur.logger.log4j.Log4JConfigurator
All Implemented Interfaces:
org.apache.log4j.spi.Configurator

public class Log4JConfigurator
extends org.apache.log4j.xml.DOMConfigurator

This is a configurator for log4j that supports variable substitution

Version:
CVS $Id: Log4JConfigurator.java,v 1.2 2004/06/14 14:07:09 cziegeler Exp $

Field Summary
protected  org.apache.avalon.framework.context.Context context
           
(package private) static java.lang.String DELIM_START
           
(package private) static int DELIM_START_LEN
           
(package private) static char DELIM_STOP
           
(package private) static int DELIM_STOP_LEN
           
 
Fields inherited from class org.apache.log4j.xml.DOMConfigurator
catFactory
 
Fields inherited from interface org.apache.log4j.spi.Configurator
INHERITED, NULL
 
Constructor Summary
Log4JConfigurator(org.apache.avalon.framework.context.Context context)
           
 
Method Summary
 java.lang.String getSystemProperty(java.lang.String key)
          This is directly copied from log4j's OptionConverter class.
protected  java.lang.String subst(java.lang.String value)
           
 java.lang.String substVars(java.lang.String val)
          This is directly copied from log4j's OptionConverter class.
 
Methods inherited from class org.apache.log4j.xml.DOMConfigurator
configure, configure, configure, configureAndWatch, configureAndWatch, doConfigure, doConfigure, doConfigure, doConfigure, doConfigure, doConfigure, findAppenderByName, findAppenderByReference, parse, parseAppender, parseCategory, parseCategoryFactory, parseChildrenOfLoggerElement, parseElement, parseErrorHandler, parseFilters, parseLayout, parseLevel, parseRenderer, parseRoot, setParameter, setParameter, subst
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

protected org.apache.avalon.framework.context.Context context

DELIM_START

static java.lang.String DELIM_START

DELIM_STOP

static char DELIM_STOP

DELIM_START_LEN

static int DELIM_START_LEN

DELIM_STOP_LEN

static int DELIM_STOP_LEN
Constructor Detail

Log4JConfigurator

public Log4JConfigurator(org.apache.avalon.framework.context.Context context)
Method Detail

subst

protected java.lang.String subst(java.lang.String value)
Overrides:
subst in class org.apache.log4j.xml.DOMConfigurator

substVars

public java.lang.String substVars(java.lang.String val)
                           throws java.lang.IllegalArgumentException
This is directly copied from log4j's OptionConverter class. The only difference is the getting of a property.

Throws:
java.lang.IllegalArgumentException

getSystemProperty

public java.lang.String getSystemProperty(java.lang.String key)
This is directly copied from log4j's OptionConverter class. The only difference is the getting of a property.