Log4j 1.3alpha-7

org.apache.log4j.config
Class ConfiguratorBase

java.lang.Object
  extended byorg.apache.log4j.config.ConfiguratorBase
All Implemented Interfaces:
Configurator
Direct Known Subclasses:
JoranConfigurator, PropertyConfigurator

public abstract class ConfiguratorBase
extends Object
implements Configurator

Code useful to most configurators.

Since:
1.3
Author:
Ceki Gulcu

Field Summary
static String DEBUG_KEY
          Defining this value makes log4j print log4j-internal debug statements.
 
Fields inherited from interface org.apache.log4j.spi.Configurator
INHERITED, NULL
 
Constructor Summary
ConfiguratorBase()
           
 
Method Summary
protected  void addError(ErrorItem errorItem)
           
protected  void attachListAppender(LoggerRepository repository)
          Attach a list appender which will be used to collect the logging events generated by log4j components, including this JoranConfigurator.
static void attachTemporaryConsoleAppender(LoggerRepository repository)
           
protected  void detachListAppender(LoggerRepository repository)
          Output the previously collected events using the current log4j configuration.
static void detachTemporaryConsoleAppender(LoggerRepository repository, List errorList)
           
 void dumpErrors()
          Dump any errors on System.out.
abstract  List getErrorList()
           
protected  Logger getLogger(LoggerRepository repository)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.log4j.spi.Configurator
doConfigure, doConfigure
 

Field Detail

DEBUG_KEY

public static final String DEBUG_KEY
Defining this value makes log4j print log4j-internal debug statements.

The value of this string is log4j.debug.

Note that the search for all option names is case sensitive.

See Also:
Constant Field Values
Constructor Detail

ConfiguratorBase

public ConfiguratorBase()
Method Detail

getLogger

protected Logger getLogger(LoggerRepository repository)

addError

protected void addError(ErrorItem errorItem)

getErrorList

public abstract List getErrorList()

attachListAppender

protected void attachListAppender(LoggerRepository repository)
Attach a list appender which will be used to collect the logging events generated by log4j components, including this JoranConfigurator. These events will later be output when detachListAppender(org.apache.log4j.spi.LoggerRepository) method is called.

Parameters:
repository -

detachListAppender

protected void detachListAppender(LoggerRepository repository)
Output the previously collected events using the current log4j configuration. When that is completed, cluse and detach the ListAppender previously created by attachListAppender(org.apache.log4j.spi.LoggerRepository).

Parameters:
repository -

attachTemporaryConsoleAppender

public static void attachTemporaryConsoleAppender(LoggerRepository repository)

detachTemporaryConsoleAppender

public static void detachTemporaryConsoleAppender(LoggerRepository repository,
                                                  List errorList)

dumpErrors

public void dumpErrors()
Dump any errors on System.out.


Log4j 1.3alpha-7

Copyright 2000-2005 Apache Software Foundation.