org.apache.log4j.config
Class ConfiguratorBase
java.lang.Object
|
+--org.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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
ConfiguratorBase
public ConfiguratorBase()
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.
Copyright © 2000-2006 Apache Software Foundation.
Licensed under the Apache License, Version 2.0.