java.io.Serializable
public class PsdkLog4j2Configuration
extends org.apache.logging.log4j.core.config.xml.XmlConfiguration
implements java.io.Serializable
Log4j2Configurator
.Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
LOG_EXT_LOGGER_PREFIX |
|
static java.lang.String |
LOG_EXT_SECTION_NAME |
|
static java.lang.String |
PSDK_APPTPL_APPENDER_PREFIX |
|
static java.lang.String |
PSDK_APPTPL_MS_APPENDER_NAME |
isShutdownHookEnabled, listeners, pluginManager, pluginPackages, rootNode, scriptManager, shutdownTimeoutMillis
Modifier | Constructor | Description |
---|---|---|
|
PsdkLog4j2Configuration(GAppLoggingOptions logOptions) |
The configuration structure constructor.
|
protected |
PsdkLog4j2Configuration(org.apache.logging.log4j.core.config.ConfigurationSource configSource,
IGApplicationConfiguration appConfig,
GAppLoggingOptions logOpts) |
Internal configuration structure constructor.
|
Modifier and Type | Method | Description |
---|---|---|
protected org.apache.logging.log4j.core.config.Node |
createConsoleAppenderConfigNode(org.apache.logging.log4j.core.config.Node parentNode,
TargetDescriptor target) |
|
protected org.apache.logging.log4j.core.config.Node |
createFileAppenderConfigNode(org.apache.logging.log4j.core.config.Node parentNode,
java.lang.String appName,
GFileTargetDescriptor target) |
|
protected org.apache.logging.log4j.core.config.Node |
createGMSAppenderConfigNode(org.apache.logging.log4j.core.config.Node parentNode) |
|
protected org.apache.logging.log4j.core.config.Node |
createLayoutNode(org.apache.logging.log4j.core.config.Node parentAppender) |
|
IGApplicationConfiguration |
getAppConfig() |
Returns the source application configuration.
|
protected <PluginClass> |
getAppTemplatePlugin(java.lang.String typename,
java.lang.Class<PluginClass> pluginClass) |
|
protected static org.apache.logging.log4j.core.config.ConfigurationSource |
getEmptyConfigSource() |
|
GAppLoggingOptions |
getLogOptions() |
Returns the source logging configuration options.
|
void |
initialize() |
|
protected static java.lang.String |
logLevelByVerbosity(VerboseLevel level) |
|
static PsdkLog4j2Configuration |
parse(IGApplicationConfiguration appConfig) |
Helper method for making Log4j2 logging configuration by given application configuration.
|
static PsdkLog4j2Configuration |
parse(KeyValueCollection logOptions) |
Helper method for making Log4j2 logging configuration by given
Genesys "log" section style configuration options.
|
org.apache.logging.log4j.core.config.Configuration |
reconfigure() |
|
void |
setup() |
|
protected void |
setupCustomLoggers(GAppLogExtOptions logExtOptions,
org.apache.logging.log4j.core.config.Node loggersNode) |
|
protected void |
setupNewAppenders(java.util.List<TargetDescriptor> targets,
VerboseLevel rootLoggerVerbosity,
org.apache.logging.log4j.core.config.Node appsNode,
java.util.List<org.apache.logging.log4j.core.config.Node> appLoggers) |
|
protected void |
setupRemoveStartupAppenders(java.util.List<org.apache.logging.log4j.core.config.Node> appLoggers) |
|
void |
start() |
|
void |
stop() |
|
java.lang.String |
toString() |
addAppender, addComponent, addListener, addLogger, addLoggerAppender, addLoggerFilter, createAdvertiser, createConfiguration, doConfigure, getAdvertiser, getAppender, getAppenders, getAsyncLoggerConfigDelegate, getComponent, getConfigurationSource, getCustomLevels, getDefaultStatus, getLogger, getLoggerConfig, getLoggerContext, getLoggers, getName, getNanoClock, getPluginManager, getPluginPackages, getProperties, getReliabilityStrategy, getRootLogger, getRootNode, getScheduler, getScriptManager, getShutdownTimeoutMillis, getStrSubstitutor, getWatchManager, initializeWatchers, isShutdownHookEnabled, preConfigure, removeAppender, removeListener, removeLogger, setAdvertiser, setLoggerAdditive, setName, setNanoClock, setPluginManager, setScriptManager, setToDefault, stop, toByteArray
addFilter, getFilter, getPropertyArray, hasFilter, isFiltered, removeFilter, stop
equalsImpl, getState, getStatusLogger, hashCodeImpl, isInitialized, isStarted, isStarting, isStopped, isStopping, setStarted, setStarting, setState, setStopped, setStopping, stop
addFilter, getFilter, hasFilter, isFiltered, removeFilter
public static final java.lang.String PSDK_APPTPL_APPENDER_PREFIX
public static final java.lang.String PSDK_APPTPL_MS_APPENDER_NAME
public static final java.lang.String LOG_EXT_SECTION_NAME
public static final java.lang.String LOG_EXT_LOGGER_PREFIX
protected PsdkLog4j2Configuration(org.apache.logging.log4j.core.config.ConfigurationSource configSource, IGApplicationConfiguration appConfig, GAppLoggingOptions logOpts)
configSource
- the configuration profile source;
may be #NULL_CONFIG_SOURCE
if no configuration profile used.appConfig
- the application configuration source.logOpts
- the application logging options initialized from the "log
" section.parse(IGApplicationConfiguration)
,
parse(KeyValueCollection)
public PsdkLog4j2Configuration(GAppLoggingOptions logOptions)
logOptions
- the application logging options.java.lang.NullPointerException
- if given logOptions
value is null
.public IGApplicationConfiguration getAppConfig()
null
if this instance was created by logging options without
application configuration providing.null
.public GAppLoggingOptions getLogOptions()
public static PsdkLog4j2Configuration parse(KeyValueCollection logOptions)
logOptions
- the source logging configuration options.java.lang.NullPointerException
- if given logOptions
value is null
.public static PsdkLog4j2Configuration parse(IGApplicationConfiguration appConfig)
appConfig
- the source application configuration.java.lang.NullPointerException
- if given appConfig
value is null
.public void initialize()
initialize
in class org.apache.logging.log4j.core.config.AbstractConfiguration
public void setup()
setup
in class org.apache.logging.log4j.core.config.xml.XmlConfiguration
public void start()
start
in class org.apache.logging.log4j.core.config.AbstractConfiguration
public void stop()
stop
in class org.apache.logging.log4j.core.AbstractLifeCycle
protected void setupRemoveStartupAppenders(java.util.List<org.apache.logging.log4j.core.config.Node> appLoggers)
protected void setupCustomLoggers(GAppLogExtOptions logExtOptions, org.apache.logging.log4j.core.config.Node loggersNode)
protected void setupNewAppenders(java.util.List<TargetDescriptor> targets, VerboseLevel rootLoggerVerbosity, org.apache.logging.log4j.core.config.Node appsNode, java.util.List<org.apache.logging.log4j.core.config.Node> appLoggers)
public org.apache.logging.log4j.core.config.Configuration reconfigure()
reconfigure
in class org.apache.logging.log4j.core.config.xml.XmlConfiguration
protected <PluginClass> org.apache.logging.log4j.core.config.plugins.util.PluginType<PluginClass> getAppTemplatePlugin(java.lang.String typename, java.lang.Class<PluginClass> pluginClass)
protected org.apache.logging.log4j.core.config.Node createConsoleAppenderConfigNode(org.apache.logging.log4j.core.config.Node parentNode, TargetDescriptor target)
protected org.apache.logging.log4j.core.config.Node createFileAppenderConfigNode(org.apache.logging.log4j.core.config.Node parentNode, java.lang.String appName, GFileTargetDescriptor target)
protected org.apache.logging.log4j.core.config.Node createGMSAppenderConfigNode(org.apache.logging.log4j.core.config.Node parentNode)
protected org.apache.logging.log4j.core.config.Node createLayoutNode(org.apache.logging.log4j.core.config.Node parentAppender)
protected static org.apache.logging.log4j.core.config.ConfigurationSource getEmptyConfigSource()
protected static java.lang.String logLevelByVerbosity(VerboseLevel level)
public java.lang.String toString()
toString
in class org.apache.logging.log4j.core.config.xml.XmlConfiguration
Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 9.0.006.00
Copyright © 2006–2019 Genesys Telecommunications Laboratories, Inc. All rights reserved.