Registry / logging / log4j-over-slf4j

log4j-over-slf4j

JSON →
library2.0.18javamavenunverified

Log4j-over-SLF4J routes Log4j logging calls to the SLF4J logging facade.

<dependency> <groupId>org.slf4j</groupId> <artifactId>log4j-over-slf4j</artifactId> <version>2.0.18</version> </dependency>
INSTALL
IMPORT
SIG · LOG4J-OVER-SLF4J
L
log4j-over-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.

Logger
org.slf4j.Logger

Uses SLF4J Logger to log a message, which is routed from Log4j calls.

import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class Main { private static final Logger logger = LoggerFactory.getLogger(Main.class); public static void main(String[] args) { logger.info("Hello from SLF4J via Log4j-over-SLF4J"); } }
Debug
Known issues
breakingDo not mix log4j-over-slf4j with slf4j-log4j12 to avoid infinite loops.
fix
Ensure only one bridging module is on the classpath.
affects: *
Upgrade
Version history
2.0.18latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
OpenAI (training)
1
Resources
log4j-over-slf4j — mvn dependency:get log4j-over-slf4j · libregistry