public class Log4j1Configuration extends AbstractConfiguration implements Reconfigurable
AbstractFilterable.Builder<B extends AbstractFilterable.Builder<B>>
LifeCycle.State
Modifier and Type | Field and Description |
---|---|
static String |
APPENDER_REF_TAG |
static Level |
DEFAULT_LEVEL
The effective level used, when the configuration uses a non-existent custom
level.
|
static String |
INHERITED |
protected BuilderManager |
manager |
static String |
MONITOR_INTERVAL |
static String |
NULL |
static String |
THRESHOLD_PARAM |
isShutdownHookEnabled, listeners, pluginManager, pluginPackages, rootNode, scriptManager, shutdownTimeoutMillis
DEFAULT_STOP_TIMEOUT, DEFAULT_STOP_TIMEUNIT, LOGGER
CONTEXT_PROPERTIES
Constructor and Description |
---|
Log4j1Configuration(LoggerContext loggerContext,
ConfigurationSource configurationSource,
int monitorIntervalSeconds) |
Modifier and Type | Method and Description |
---|---|
BuilderManager |
getBuilderManager() |
void |
initialize()
Initialize the configuration.
|
Configuration |
reconfigure() |
addAppender, addComponent, addListener, addLogger, addLoggerAppender, addLoggerFilter, createAdvertiser, createConfiguration, createPluginObject, doConfigure, getAdvertiser, getAppender, getAppenders, getAsyncLoggerConfigDelegate, getAsyncWaitStrategyFactory, getComponent, getConfigurationSource, getConfigurationStrSubstitutor, getCustomLevels, getDefaultLevel, getDefaultStatus, getLogger, getLoggerConfig, getLoggerContext, getLoggers, getName, getNanoClock, getPluginManager, getPluginPackages, getProperties, getReliabilityStrategy, getRootLogger, getRootNode, getScheduler, getScriptManager, getShutdownTimeoutMillis, getStrSubstitutor, getWatchManager, initializeWatchers, isShutdownHookEnabled, preConfigure, processConditionals, processSelect, removeAppender, removeListener, removeLogger, setAdvertiser, setLoggerAdditive, setName, setNanoClock, setPluginManager, setScriptManager, setToDefault, setup, start, stop, toByteArray
addFilter, getFilter, getPropertyArray, hasFilter, isFiltered, removeFilter, stop
equalsImpl, getState, getStatusLogger, hashCodeImpl, isInitialized, isStarted, isStarting, isStopped, isStopping, setStarted, setStarting, setState, setStopped, setStopping, stop, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addFilter, getFilter, hasFilter, isFiltered, removeFilter
public static final String MONITOR_INTERVAL
public static final String APPENDER_REF_TAG
public static final String THRESHOLD_PARAM
public static final String INHERITED
public static final String NULL
public static final Level DEFAULT_LEVEL
protected final BuilderManager manager
public Log4j1Configuration(LoggerContext loggerContext, ConfigurationSource configurationSource, int monitorIntervalSeconds)
public BuilderManager getBuilderManager()
public void initialize()
initialize
in interface LifeCycle
initialize
in class AbstractConfiguration
public Configuration reconfigure()
reconfigure
in interface Reconfigurable
Copyright © 1999-2022 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.