public class Log4j2Configurator
extends java.lang.Object
Constructor | Description |
---|---|
Log4j2Configurator() |
Modifier and Type | Method | Description |
---|---|---|
static boolean |
applyLoggingConfig(IGApplicationConfiguration appConfig,
LmsMessageConveyor lmsConveyor) |
Parses and applies Log4j2 logging configuration to the LoggerContext.
|
static boolean |
applyLoggingConfig(org.apache.logging.log4j.core.config.Configuration config,
IGApplicationConfiguration appConfig,
LmsMessageConveyor lmsConveyor) |
Applies Log4j2 logging configuration to the LoggerContext.
|
static org.apache.logging.log4j.spi.LoggerContext |
getLoggerContext() |
Returns Platform SDK common Log4j2 LoggerContext.
|
static org.apache.logging.log4j.spi.LoggerContext |
setConfig(org.apache.logging.log4j.core.config.Configuration config) |
Applies given Log4j2 configuration to Log4j2 Core PSDK LoggerContext.
|
public static org.apache.logging.log4j.spi.LoggerContext getLoggerContext()
public static boolean applyLoggingConfig(IGApplicationConfiguration appConfig, LmsMessageConveyor lmsConveyor)
appConfig
- the application configuration to extract logging configuration from.lmsConveyor
- reference to new LmsMessageConveyor or null to create default one.true
if configuration was created and applied, or false
if it was not.java.lang.NullPointerException
- if given application configuration is null
.getLoggerContext()
,
GApplicationConfiguration
public static boolean applyLoggingConfig(org.apache.logging.log4j.core.config.Configuration config, IGApplicationConfiguration appConfig, LmsMessageConveyor lmsConveyor)
config
- the logging configuration to apply.appConfig
- the application configuration.lmsConveyor
- reference to new LmsMessageConveyor or null to create default one.true
if configuration successfully applied, or false
if it was not.NullPoniterException
- if given application configuration is null
.getLoggerContext()
,
GApplicationConfiguration
public static org.apache.logging.log4j.spi.LoggerContext setConfig(org.apache.logging.log4j.core.config.Configuration config)
config
- Log4j2 logging configuration description structure.null
.getLoggerContext()
,
applyLoggingConfig(IGApplicationConfiguration, LmsMessageConveyor)
,
LoggerContext.start(Configuration)
Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 9.0.006.00
Copyright © 2006–2019 Genesys Telecommunications Laboratories, Inc. All rights reserved.