Registry / logging / jul-to-slf4j

jul-to-slf4j

JSON →
library2.0.18javamavenunverified

JUL to SLF4J bridge, routing java.util.logging calls to the SLF4J logging facade.

<dependency> <groupId>org.slf4j</groupId> <artifactId>jul-to-slf4j</artifactId> <version>2.0.18</version> </dependency>
INSTALL
IMPORT
SIG · JUL-TO-SLF4J
J
jul-to-slf4j
loggingjavav2.0.18
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.

SLF4JBridgeHandler
org.slf4j.bridge.SLF4JBridgeHandler

Install JUL-to-SLF4J bridge to redirect java.util.logging messages.

import org.slf4j.bridge.SLF4JBridgeHandler; public class LogBridge { public static void main(String[] args) { SLF4JBridgeHandler.removeHandlersForRootLogger(); SLF4JBridgeHandler.install(); java.util.logging.Logger.getLogger("test").info("This goes to SLF4J"); } }
Debug
Known issues
gotchaInstalling the bridge may cause infinite loops if SLF4J itself uses JUL.
fix
Ensure SLF4J implementation (e.g., logback) does not route back to JUL.
affects: *
Upgrade
Version history
2.0.18latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
19 hits · last 30 days
node
16
Amazon
1
Resources
jul-to-slf4j — mvn dependency:get jul-to-slf4j · libregistry