Log4J2LoggingSystem

LoggingSystem for Log4j 2.

Author

Daniel Fullarton

Andy Wilkinson

Alexander Heusingfeld

Ben Hale

Ralph Goers

Since

1.2.0

Constructors

Link copied to clipboard
constructor(classLoader: ClassLoader)

Types

Link copied to clipboard
@Order(value = 0)
open class Factory : LoggingSystemFactory
LoggingSystemFactory that returns Log4J2LoggingSystem if possible.

Properties

Link copied to clipboard
val EXPECT_CORRELATION_ID_PROPERTY: String = "logging.expect-correlation-id"
The name of an Environment property used to indicate that a correlation ID is expected to be logged at some point.
Link copied to clipboard
val NONE: String = "none"
The value of the SYSTEM_PROPERTY that can be used to indicate that no LoggingSystem should be used.
Link copied to clipboard
val ROOT_LOGGER_NAME: String = "ROOT"
The name used for the root logger.
Link copied to clipboard
A System property that can be used to indicate the LoggingSystem to use.

Functions

Link copied to clipboard
open fun beforeInitialize()
Reset the logging system to be limit output.
Link copied to clipboard
open fun cleanUp()
Clean up the logging system.
Link copied to clipboard
open fun get(classLoader: ClassLoader): LoggingSystem
Detect and return the logging system in use.
Link copied to clipboard
open fun getEnvironment(loggerContext: LoggerContext): Environment
Get the Spring Environment attached to the given LoggerContext or null if no environment is available.
Link copied to clipboard
Returns the current configuration for a LoggingSystem's logger.
Link copied to clipboard
Returns a collection of the current configuration for all a LoggingSystem's loggers.
Link copied to clipboard
Returns a Runnable that can handle shutdown of this logging system when the JVM exits.
Link copied to clipboard
Returns a set of the LogLevels that are actually supported by the logging system.
Link copied to clipboard
Return the LoggingSystemProperties that should be applied.
Link copied to clipboard
open fun initialize(initializationContext: LoggingInitializationContext, configLocation: String, logFile: LogFile)
Fully initialize the logging system.
Link copied to clipboard
open fun setLogLevel(loggerName: String, logLevel: LogLevel)
Sets the logging level for a given logger.