public class PropertiesConfiguration extends Log4j1Configuration
AbstractFilterable.Builder<B extends AbstractFilterable.Builder<B>>
LifeCycle.State
Modifier and Type | Field and Description |
---|---|
static String |
DEBUG_KEY |
static String |
THRESHOLD_KEY |
INHERITED, manager, MONITOR_INTERVAL, NULL, THRESHOLD_PARAM
isShutdownHookEnabled, listeners, pluginManager, pluginPackages, rootNode, scriptManager, shutdownTimeoutMillis
DEFAULT_STOP_TIMEOUT, DEFAULT_STOP_TIMEUNIT, LOGGER
CONTEXT_PROPERTIES
Constructor and Description |
---|
PropertiesConfiguration(LoggerContext loggerContext,
ConfigurationSource source,
int monitorIntervalSeconds)
Constructs a new instance.
|
PropertiesConfiguration(LoggerContext loggerContext,
Properties properties)
Constructs a new instance.
|
PropertiesConfiguration(LoggerContext loggerContext,
Properties properties)
Constructs a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addProperties(Object obj,
String[] keys,
Properties props,
String prefix) |
void |
doConfigure() |
Appender |
parseAppender(Properties props,
String appenderName) |
Filter |
parseAppenderFilters(Properties props,
String filterPrefix,
String appenderName) |
ErrorHandler |
parseErrorHandler(Properties props,
String errorHandlerPrefix,
String errorHandlerClass,
Appender appender) |
Layout |
parseLayout(String layoutPrefix,
String appenderName,
Properties props) |
Configuration |
reconfigure() |
getBuilderManager, initialize
addAppender, addComponent, addListener, addLogger, addLoggerAppender, addLoggerFilter, createAdvertiser, createConfiguration, createPluginObject, getAdvertiser, getAppender, getAppenders, getAsyncLoggerConfigDelegate, 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 THRESHOLD_KEY
public static final String DEBUG_KEY
public PropertiesConfiguration(LoggerContext loggerContext, ConfigurationSource source, int monitorIntervalSeconds)
loggerContext
- The LoggerContext.source
- The ConfigurationSource.monitorIntervalSeconds
- The monitoring interval in seconds.public PropertiesConfiguration(LoggerContext loggerContext, Properties properties)
loggerContext
- The LoggerContext.properties
- The ConfigurationSource, may be null.public PropertiesConfiguration(LoggerContext loggerContext, Properties properties)
loggerContext
- The LoggerContext.properties
- The ConfigurationSource.public void doConfigure()
doConfigure
in class AbstractConfiguration
public Configuration reconfigure()
reconfigure
in interface Reconfigurable
reconfigure
in class Log4j1Configuration
public Appender parseAppender(Properties props, String appenderName)
public Layout parseLayout(String layoutPrefix, String appenderName, Properties props)
public ErrorHandler parseErrorHandler(Properties props, String errorHandlerPrefix, String errorHandlerClass, Appender appender)
public void addProperties(Object obj, String[] keys, Properties props, String prefix)
public Filter parseAppenderFilters(Properties props, String filterPrefix, String appenderName)
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.