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 long |
DEFAULT_DELAY |
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)
No argument constructor.
|
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) |
getBuilderManager, initialize, reconfigure
addAppender, addComponent, addListener, addLogger, addLoggerAppender, addLoggerFilter, createAdvertiser, createConfiguration, getAdvertiser, getAppender, getAppenders, getAsyncLoggerConfigDelegate, getComponent, getConfigurationSource, getCustomLevels, getDefaultStatus, getLogger, getLoggerConfig, getLoggerContext, getLoggers, getName, getNanoClock, getPluginManager, getPluginPackages, getProperties, getReliabilityStrategy, getRootLogger, getRootNode, getScheduler, getScriptManager, getShutdownTimeoutMillis, getStrSubstitutor, getWatchManager, initializeWatchers, isShutdownHookEnabled, preConfigure, 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 long DEFAULT_DELAY
public static final String DEBUG_KEY
public PropertiesConfiguration(LoggerContext loggerContext, ConfigurationSource source, int monitorIntervalSeconds)
public void doConfigure()
doConfigure
in class AbstractConfiguration
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-2020 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.