CustomXMLConfiguration

inner class CustomXMLConfiguration(loggerContext: LoggerContext?, configSource: ConfigurationSource?) : 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

Parameters

loggerContext

logger context passed from log4j itself

configSource

configuration source passed from ApiProperties.getConfiguration.

Constructors

Link copied to clipboard
constructor(loggerContext: LoggerContext?, configSource: ConfigurationSource?)

Properties

Link copied to clipboard
var advertiser: Advertiser
Link copied to clipboard
val asyncWaitStrategyFactory: AsyncWaitStrategyFactory
Link copied to clipboard
val configurationSource: ConfigurationSource
Link copied to clipboard
val configurationStrSubstitutor: StrSubstitutor
Link copied to clipboard
val customLevels: MutableList<CustomLevelConfig>
Link copied to clipboard
val filter: Filter
Link copied to clipboard
Link copied to clipboard
protected val listeners: MutableList<ConfigurationListener>
Link copied to clipboard
Link copied to clipboard
var nanoClock: NanoClock
Link copied to clipboard
protected var pluginManager: PluginManager
Link copied to clipboard
Link copied to clipboard
@PluginElement(value = "Properties")
val propertyArray: Array<Property>
Link copied to clipboard
protected var rootNode: Node
Link copied to clipboard
protected var scriptManager: ScriptManager
Link copied to clipboard
Link copied to clipboard
var state: LifeCycle.State
Link copied to clipboard
val watchManager: WatchManager

Functions

Link copied to clipboard
open override fun addAppender(appender: Appender)
Link copied to clipboard
open override fun addComponent(componentName: String, obj: Any)
Link copied to clipboard
open override fun addFilter(filter: Filter)
Link copied to clipboard
open override fun addListener(listener: ConfigurationListener)
Link copied to clipboard
open override fun addLogger(loggerName: String, loggerConfig: LoggerConfig)
Link copied to clipboard
open override fun addLoggerAppender(logger: Logger, appender: Appender)
Link copied to clipboard
open override fun addLoggerFilter(logger: Logger, filter: Filter)
Link copied to clipboard
protected open fun createAdvertiser(advertiserString: String, configSource: ConfigurationSource, buffer: ByteArray, contentType: String)
Link copied to clipboard
open override fun createConfiguration(node: Node, event: LogEvent)
Link copied to clipboard
open fun createPluginObject(type: PluginType<*>, node: Node): Any
Link copied to clipboard
protected open fun doConfigure()
Link copied to clipboard
protected open fun equalsImpl(obj: Any): Boolean
Link copied to clipboard
open override fun <T : Appender> getAppender(appenderName: String): T
Link copied to clipboard
open override fun getAppenders(): MutableMap<String, Appender>
Link copied to clipboard
open override fun getAsyncLoggerConfigDelegate(): AsyncLoggerConfigDelegate
Link copied to clipboard
open override fun <T : Any> getComponent(componentName: String): T
Link copied to clipboard
protected open fun getDefaultStatus(): Level
Link copied to clipboard
open fun getLogger(loggerName: String): LoggerConfig
Link copied to clipboard
open override fun getLoggerConfig(loggerName: String): LoggerConfig
Link copied to clipboard
open override fun getLoggerContext(): LoggerContext
Link copied to clipboard
open override fun getLoggers(): MutableMap<String, LoggerConfig>
Link copied to clipboard
open fun getPluginManager(): PluginManager
Link copied to clipboard
open override fun getPluginPackages(): MutableList<String>
Link copied to clipboard
open override fun getProperties(): MutableMap<String, String>
Link copied to clipboard
open override fun getReliabilityStrategy(loggerConfig: LoggerConfig): ReliabilityStrategy
Link copied to clipboard
open override fun getRootLogger(): LoggerConfig
Link copied to clipboard
open fun getRootNode(): Node
Link copied to clipboard
open override fun getScheduler(): ConfigurationScheduler
Link copied to clipboard
open override fun getScriptManager(): ScriptManager
Link copied to clipboard
open override fun getShutdownTimeoutMillis(): Long
Link copied to clipboard
open override fun getStrSubstitutor(): StrSubstitutor
Link copied to clipboard
open override fun hasFilter(): Boolean
Link copied to clipboard
protected open fun hashCodeImpl(): Int
Link copied to clipboard
open override fun initialize()
Link copied to clipboard
protected open fun initializeWatchers(reconfigurable: Reconfigurable, configSource: ConfigurationSource, monitorIntervalSeconds: Int)
Link copied to clipboard
open override fun isFiltered(event: LogEvent): Boolean
Link copied to clipboard
Link copied to clipboard
open override fun isShutdownHookEnabled(): Boolean
Link copied to clipboard
open override fun isStarted(): Boolean
Link copied to clipboard
open fun isStarting(): Boolean
Link copied to clipboard
open override fun isStopped(): Boolean
Link copied to clipboard
open fun isStopping(): Boolean
Link copied to clipboard
protected open fun preConfigure(node: Node)
Link copied to clipboard
protected open fun processConditionals(node: Node)
Link copied to clipboard
protected open fun processSelect(selectNode: Node, type: PluginType<*>): MutableList<Node>
Link copied to clipboard
open override fun reconfigure(): Configuration
Link copied to clipboard
open fun removeAppender(appenderName: String)
Link copied to clipboard
open override fun removeFilter(filter: Filter)
Link copied to clipboard
open override fun removeListener(listener: ConfigurationListener)
Link copied to clipboard
open override fun removeLogger(loggerName: String)
Link copied to clipboard
open override fun setLoggerAdditive(logger: Logger, additive: Boolean)
Link copied to clipboard
open fun setPluginManager(pluginManager: PluginManager)
Link copied to clipboard
open fun setScriptManager(scriptManager: ScriptManager)
Link copied to clipboard
protected open fun setStarted()
Link copied to clipboard
protected open fun setStarting()
Link copied to clipboard
protected open fun setStopped()
Link copied to clipboard
protected open fun setStopping()
Link copied to clipboard
protected open fun setToDefault()
Link copied to clipboard
open override fun setup()
Link copied to clipboard
open override fun start()
Link copied to clipboard
open override fun stop()
protected open fun stop(future: Future<*>): Boolean
open override fun stop(timeout: Long, timeUnit: TimeUnit): Boolean
protected open fun stop(timeout: Long, timeUnit: TimeUnit, changeLifeCycleState: Boolean): Boolean
Link copied to clipboard
open override fun toString(): String