Registry / logging / log4j-slf4j18-impl

log4j-slf4j18-impl

JSON →
library2.18.0javamavenunverified

The Apache Log4j SLF4J 1.8 API binding to Log4j 2 Core allows SLF4J 1.8 logging to be routed through Log4j 2.

<dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-slf4j18-impl</artifactId> <version>2.18.0</version> </dependency>
INSTALL
IMPORT
SIG · LOG4J-SLF4J18-IMPL
L
log4j-slf4j18-impl
loggingjavav2.18.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.

Logger
org.slf4j.Logger

Demonstrates using SLF4J logger with Log4j 2 as the backend.

import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class Example { private static final Logger logger = LoggerFactory.getLogger(Example.class); public static void main(String[] args) { logger.info("Hello, Log4j via SLF4J!"); } }
Debug
Known issues
breakingThis binding is specific to SLF4J 1.8 API; incompatible with SLF4J 2.x.
fix
Use log4j-slf4j2-impl for SLF4J 2.x.
affects: *
Upgrade
Version history
2.18.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

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