|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.genesyslab.platform.apptemplate.log4j2.Log4j2Configurator
public class Log4j2Configurator
This class contains configuration appliance logic for Log4j2 logging framework.
Constructor Summary | |
---|---|
Log4j2Configurator()
|
Method Summary | |
---|---|
static boolean |
applyLoggingConfig(org.apache.logging.log4j.core.config.Configuration config,
IGApplicationConfiguration appConfig,
LmsMessageConveyor lmsConveyor)
Applies Log4j2 logging configuration to the LoggerContext. |
static boolean |
applyLoggingConfig(IGApplicationConfiguration appConfig,
LmsMessageConveyor lmsConveyor)
Parses and 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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Log4j2Configurator()
Method Detail |
---|
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)
|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |