public final class LoggingConfig.CustomXmlConfiguration
extends org.apache.logging.log4j.core.config.xml.XmlConfiguration
isShutdownHookEnabled, listeners, pluginManager, pluginPackages, rootNode, scriptManager, shutdownTimeoutMillis| Constructor and Description |
|---|
CustomXmlConfiguration(org.apache.logging.log4j.core.LoggerContext loggerContext,
org.apache.logging.log4j.core.config.ConfigurationSource configSource)
Setup the XML configuration with the passed context and config source.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doConfigure()
For now, all this does is call the
AbstractConfiguration.doConfigure()-method to setup the
configuration with the passed source from the constructor. |
reconfigure, setup, toStringaddAppender, 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, initialize, initializeWatchers, isShutdownHookEnabled, preConfigure, processConditionals, processSelect, removeAppender, removeListener, removeLogger, setAdvertiser, setLoggerAdditive, setName, setNanoClock, setPluginManager, setScriptManager, setToDefault, 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, wait, wait, waitpublic CustomXmlConfiguration(org.apache.logging.log4j.core.LoggerContext loggerContext,
org.apache.logging.log4j.core.config.ConfigurationSource configSource)
LoggingConfig.getConfiguration(LoggerContext, ConfigurationSource) where
multiple attempts at creating a new CustomXmlConfiguration using our own log4j2.xml are made
before the default log4j setup is used.loggerContext - logger context passed from log4j itselfconfigSource - configuration source passed from
LoggingConfig.getConfiguration(LoggerContext,
ConfigurationSource).protected void doConfigure()
AbstractConfiguration.doConfigure()-method to setup the
configuration with the passed source from the constructor. Custom values and settings can be
set here in the future, should a need arise to do so.doConfigure in class org.apache.logging.log4j.core.config.AbstractConfiguration