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 XmlConfiguration
                        

    Custom 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.

    Author:

    Griefed

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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 itself
        configSource - configuration source passed from ApiProperties.getConfiguration.
    • Method Detail