AbstractLoggerAdapter |
Abstract Logger registry.
|
ApiLogger |
Log4j API implementation of the JUL Logger class.
|
ApiLoggerAdapter |
Logger registry implementation using just log4j-api.
|
Constants |
Constants for the JUL adapter.
|
CoreLogger |
Log4j Core implementation of the JUL Logger class.
|
CoreLoggerAdapter |
Logger registry implementation that uses log4j-core.
|
DefaultLevelConverter |
Default implementation of LevelConverter strategy.
|
LevelTranslator |
Utility class to convert between JDK Levels and Log4j 2 Levels.
|
Log4jBridgeHandler |
Bridge from JUL to log4j2.
This is an alternative to log4j.jul.LogManager (running as complete JUL replacement),
especially useful for webapps running on a container for which the LogManager cannot or
should not be used.
Installation/usage:
Declaratively inside JUL's logging.properties :
handlers = org.apache.logging.log4j.jul.Log4jBridgeHandler
(and typically also: org.apache.logging.log4j.jul.Log4jBridgeHandler.propagateLevels = true )
Note: in a webapp running on Tomcat, you may create a WEB-INF/classes/logging.properties
file to configure JUL for this webapp only: configured handlers and log levels affect your webapp only!
This file is then the complete JUL configuration, so JUL's defaults (e.g.
|
LogManager |
|
NoOpLogger |
Dummy version of a java.util.Logger.
|