public final class InternalLogging extends Object
Logger interface.
By default, if no Logger instance is set, Log4j2StatusLoggerWrapper instance will be created.
This behaviour can be changed (mainly to detect InternalLogging setup issues) by
setting THROW_ON_NULL_LOGGER property to true.
| Modifier and Type | Method and Description |
|---|---|
static Logger |
getLogger() |
static void |
setLogger(Logger logger)
Allows to set an arbitrary
Logger |
public static Logger getLogger()
Logger instance is set, Log4j2StatusLoggerWrapper instance will be returned.
Otherwise, an instance of Logger set with setLogger(Logger) will be returned.public static void setLogger(Logger logger)
Loggerlogger - Logger instance returned by subsequent getLogger() callsCopyright © 2021. All rights reserved.