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
           
 
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, parseErrorHandler, parseFilters, parseLayout, parseLevel, parseRenderer, parseRoot, setParameter
 
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
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.



Copyright © 1997-2009 Apache Software Foundation. All Rights Reserved.