Registry / logging / log4j-core

log4j-core

JSON →
library2.26.0javamavenunverified

The Apache Log4j Implementation.

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

Shows how to obtain a Logger and log an info message.

import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; public class Example { private static final Logger logger = LogManager.getLogger(Example.class); public static void main(String[] args) { logger.info("Hello, Log4j!"); } }
Debug
Known issues
breakingLog4j 2.x has known security vulnerabilities (e.g., CVE-2021-44228) in older versions.
fix
Upgrade to version 2.17.0 or later to mitigate Log4Shell.
affects: <2.17.0
Upgrade
Version history
2.26.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
12
OpenAI (training)
1
Resources
log4j-core — mvn dependency:get log4j-core · libregistry