Registry / logging / log4j-jul

log4j-jul

JSON →
library2.26.0javamavenunverified

A java.util.logging Handler that forwards logging events to the Log4j API.

<dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-jul</artifactId> <version>2.26.0</version> </dependency>
INSTALL
IMPORT
SIG · LOG4J-JUL
L
log4j-jul
loggingjavav2.26.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Log4jBridgeHandler
org.apache.logging.log4j.jul.Log4jBridgeHandler

Adds a Log4j bridge handler to the root JUL logger.

import org.apache.logging.log4j.jul.Log4jBridgeHandler; Log4jBridgeHandler handler = new Log4jBridgeHandler(); java.util.logging.Logger.getLogger("").addHandler(handler);
Debug
Known issues
gotchaMay cause duplicate log entries if both JUL and Log4j are configured.
fix
Remove other JUL handlers or configure Log4j to handle JUL events exclusively.
affects: >=2.0.0
Upgrade
Version history
2.26.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
12
Resources
log4j-jul — mvn dependency:get log4j-jul · libregistry