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.
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<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
createAdvertiser, createPluginObject, doConfigure, getAdvertiser, getAppenders, getAsyncLoggerConfigDelegate, getAsyncWaitStrategyFactory, getConfigurationSource, getConfigurationStrSubstitutor, getCustomLevels, getDefaultStatus, getFilter, getLogger, getLoggerContext, getLoggers, getName, getNanoClock, getPluginManager, getPluginPackages, getProperties, getRootLogger, getRootNode, getScheduler, getScriptManager, getShutdownTimeoutMillis, getState, getStrSubstitutor, getWatchManager, initializeWatchers, isShutdownHookEnabled, isStarted, isStopped, preConfigure, processConditionals, processSelect, removeAppender, setAdvertiser, setName, setNanoClock, setPluginManager, setScriptManager, setToDefault, setup -
Methods inherited from class org.apache.logging.log4j.core.AbstractLifeCycle
equalsImpl, hashCodeImpl, isInitialized, isStarting, isStopping, setStarted, setStarting, setState, setStopped, setStopping, stop -
Methods inherited from class org.apache.logging.log4j.core.filter.AbstractFilterable
getPropertyArray, stop -
Methods inherited from class org.apache.logging.log4j.core.config.Reconfigurable
reconfigure -
Methods inherited from class org.apache.logging.log4j.core.LifeCycle
getState, initialize, isStarted, isStopped, start, stop -
Methods inherited from class org.apache.logging.log4j.core.LifeCycle2
stop -
Methods inherited from class org.apache.logging.log4j.core.config.Configuration
addAppender, addComponent, addListener, addLogger, addLoggerAppender, addLoggerFilter, createConfiguration, getAppender, getComponent, getLoggerConfig, getReliabilityStrategy, removeListener, removeLogger, setLoggerAdditive -
Methods inherited from class org.apache.logging.log4j.core.filter.Filterable
addFilter, getFilter, hasFilter, isFiltered, removeFilter -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ApiProperties.CustomXMLConfiguration
ApiProperties.CustomXMLConfiguration(LoggerContext loggerContext, ConfigurationSource configSource)
- Parameters:
loggerContext- logger context passed from log4j itselfconfigSource- configuration source passed from ApiProperties.getConfiguration.
-
-
-
-