Registry / logging / log4j-bom

log4j-bom

JSON →
library2.26.0javamavenunverified

Bill-of-Materials (BOM) for managing Apache Log4j dependency versions.

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

LogManager
org.apache.logging.log4j.LogManager

Get a logger instance using LogManager.

import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; Logger logger = LogManager.getLogger(MyClass.class); logger.info("Hello, Log4j!");
Debug
Known issues
breakingLog4j 2.x has known security vulnerabilities (CVE-2021-44228) in versions before 2.17.0.
fix
Upgrade to version 2.17.0 or later to mitigate Log4Shell vulnerability.
affects: <2.17.0
Upgrade
Version history
2.26.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
14
Amazon
1
Resources
log4j-bom — mvn dependency:get log4j-bom · libregistry