Registry / logging / spring-boot-starter-log4j2

spring-boot-starter-log4j2

JSON →
library4.1.0javamavenunverified

Spring Boot starter for using Log4j2 as the logging framework, providing auto-configuration and dependency management.

<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-log4j2</artifactId> <version>4.1.0</version> </dependency>
INSTALL
IMPORT
SIG · SPRING-BOOT-STARTE
S
spring-boot-starter-log4j2
loggingjavav4.1.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

Minimal Log4j2 logger usage with LogManager.

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

No dependency data recorded yet.

Agent activity
49 hits · last 30 days
node
46
Resources
spring-boot-starter-log4j2 — mvn dependency:get spring-boot-starter-log4j2 · libregistry