Registry / logging / log4j-slf4j2-impl

log4j-slf4j2-impl

JSON →
library2.26.0javamavenunverified

Bridges the SLF4J 2.0 API to Log4j 2 Core for logging.

<dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-slf4j2-impl</artifactId> <version>2.26.0</version> </dependency>
INSTALL
IMPORT
SIG · LOG4J-SLF4J2-IMPL
L
log4j-slf4j2-impl
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.

Log4jLogger
org.apache.logging.slf4j.Log4jLogger

Use SLF4J API with Log4j 2 as the logging 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
gotchaEnsure no other SLF4J bindings are on the classpath to avoid conflicts.
fix
Exclude other SLF4J implementations like logback-classic.
affects: *
Upgrade
Version history
2.26.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
log4j-slf4j2-impl — mvn dependency:get log4j-slf4j2-impl · libregistry