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 |
DEFAULT_LEVEL, INHERITED, manager, MONITOR_INTERVAL, NULL, THRESHOLD_PARAMisShutdownHookEnabled, listeners, pluginManager, pluginPackages, rootNode, scriptManager, shutdownTimeoutMillisDEFAULT_STOP_TIMEOUT, DEFAULT_STOP_TIMEUNIT, LOGGERCONTEXT_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) |
TriggeringPolicy |
parseTriggeringPolicy(Properties props,
String policyPrefix) |
Configuration |
reconfigure() |
getBuilderManager, initializeaddAppender, addComponent, addListener, addLogger, addLoggerAppender, addLoggerFilter, createAdvertiser, createConfiguration, createPluginObject, 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, toByteArrayaddFilter, getFilter, getPropertyArray, hasFilter, isFiltered, removeFilter, stopequalsImpl, getState, getStatusLogger, hashCodeImpl, isInitialized, isStarted, isStarting, isStopped, isStopping, setStarted, setStarting, setState, setStopped, setStopping, stop, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddFilter, getFilter, hasFilter, isFiltered, removeFilterpublic 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 AbstractConfigurationpublic Configuration reconfigure()
reconfigure in interface Reconfigurablereconfigure in class Log4j1Configurationpublic 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)
public TriggeringPolicy parseTriggeringPolicy(Properties props, String policyPrefix)
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.