Package de.griefed.serverpackcreator.api
Class ApiProperties.CustomXMLConfiguration
-
- All Implemented Interfaces:
-
org.apache.logging.log4j.core.LifeCycle,org.apache.logging.log4j.core.LifeCycle2,org.apache.logging.log4j.core.config.Configuration,org.apache.logging.log4j.core.config.Reconfigurable,org.apache.logging.log4j.core.filter.Filterable
public final class ApiProperties.CustomXMLConfiguration extends XmlConfigurationCustom XmlConfiguration to pass our custom log4j2.xml config to log4j.
Set up the XML configuration with the passed context and config source. For the config source being used, ApiProperties.getConfiguration where multiple attempts at creating a new private val log by lazy { cachedLoggerOf(this.javaClass) } using our own log4j2.xml are made before the default log4j setup is used.
loggerContext — logger context passed from log4j itself. configSource — configuration source passed from ApiProperties.getConfiguration.
Griefed
-
-
Field Summary
Fields Modifier and Type Field Description private NanoClocknanoClockprivate final List<CustomLevelConfig>customLevelsprivate final Map<String, LoggerConfig>loggersprivate final Filterfilterprivate Advertiseradvertiserprivate final NoderootNodeprivate final ConfigurationSchedulerschedulerprivate final LeveldefaultStatusprivate final LoggerConfigrootLoggerprivate final BooleanisInitializedprivate final StrSubstitutorstrSubstitutorprivate final ConfigurationSourceconfigurationSourceprivate final LoggerContextloggerContextprivate LifeCycle.Statestateprivate final Map<String, String>propertiesprivate final StrSubstitutorconfigurationStrSubstitutorprivate ScriptManagerscriptManagerprivate final BooleanisStoppingprivate final BooleanisShutdownHookEnabledprivate final AsyncLoggerConfigDelegateasyncLoggerConfigDelegateprivate final Array<out Property>propertyArrayprivate final WatchManagerwatchManagerprivate final BooleanisStartedprivate final List<String>pluginPackagesprivate final BooleanisStoppedprivate final BooleanisStartingprivate Stringnameprivate final Map<String, Appender>appendersprivate final AsyncWaitStrategyFactoryasyncWaitStrategyFactoryprivate final LongshutdownTimeoutMillisprivate PluginManagerpluginManagerprotected final List<ConfigurationListener>listeners
-
Constructor Summary
Constructors Constructor Description ApiProperties.CustomXMLConfiguration(LoggerContext loggerContext, ConfigurationSource configSource)
-
Method Summary
Modifier and Type Method Description -
Methods inherited from class org.apache.logging.log4j.core.config.AbstractConfiguration
addAppender, addComponent, addListener, addLogger, addLoggerAppender, addLoggerFilter, createAdvertiser, createConfiguration, createPluginObject, doConfigure, getAdvertiser, getAppender, getAppenders, getAsyncLoggerConfigDelegate, getAsyncWaitStrategyFactory, getComponent, getConfigurationSource, getConfigurationStrSubstitutor, getCustomLevels, getDefaultStatus, getFilter, getLogger, getLoggerConfig, getLoggerContext, getLoggers, getName, getNanoClock, getPluginManager, getPluginPackages, getProperties, getReliabilityStrategy, getRootLogger, getRootNode, getScheduler, getScriptManager, getShutdownTimeoutMillis, getState, getStrSubstitutor, getWatchManager, initialize, initializeWatchers, isShutdownHookEnabled, isStarted, isStopped, preConfigure, processConditionals, processSelect, removeAppender, removeListener, removeLogger, setAdvertiser, setLoggerAdditive, setName, setNanoClock, setPluginManager, setScriptManager, setToDefault, start, stop -
Methods inherited from class org.apache.logging.log4j.core.AbstractLifeCycle
equalsImpl, getState, hashCodeImpl, isInitialized, isStarted, isStarting, isStopped, isStopping, setStarted, setStarting, setState, setStopped, setStopping, stop, stop -
Methods inherited from class org.apache.logging.log4j.core.filter.AbstractFilterable
addFilter, getFilter, getPropertyArray, hasFilter, isFiltered, removeFilter, stop -
Methods inherited from class org.apache.logging.log4j.core.config.xml.XmlConfiguration
reconfigure, setup, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-