Version Repository Usages Date; 2.0.x. 2.0.0-alpha1: Central: 36: Oct, 2019: 2.0.0-alpha0: Central. Log4j implemented over SLF4J License: Apache 2.0: Categories: Logging Bridges: Tags: logging slf4j bridge: Used By: Central (66) Redhat GA (7) Redhat EA (4) JBoss 3rd-party (3). Apache Log4j 2 is an upgrade to Log4j that provides significant improvements over its predecessor, Log4j 1.x, and provides many of the improvements available in Logback while fixing some inherent problems in Logback's architecture. apache/logging-log4j2.
An available version suit of slf4j and log4j2 with Maven 3.
pom.xml
log4j2.xml
Log4j-over-slf4j Maven Example
If you want to use log4j-slf4j-impl instead of log4j-slf4j18-impl, please attention to take right version of SLF4J to avoid a break in compatibility. Because SLF4J take different mechanism since 1.8.x.
The Log4j 2 SLF4J Binding allows applications coded to the SLF4J API to use Log4j 2 as the implementation.
Due to a break in compatibility in the SLF4J binding, as of release 2.11.1 two SLF4J to Log4j Adapters are provided.
Log4j-over-slf4j Maven Pom
log4j-slf4j-impl should be used with SLF4J 1.7.x releases or older.
log4j-slf4j18-impl should be used with SLF4J 1.8.x releases or newer.
Log4j Slf4j Impl
Applications that take advantage of the Java Module System should use SLF4J 1.8.x and log4j-slf4j18-impl.