Registry / logging / log4j-spring-boot

log4j-spring-boot

JSON →
library2.26.0javamavenunverified

Integration module for using Apache Log4j 2 with Spring Boot applications.

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

Log4j2SpringBootLoggingSystem
org.apache.logging.log4j.spring.boot.Log4j2SpringBootLoggingSystem

Basic logging with Log4j 2 in a Spring Boot application

import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; public class LogExample { private static final Logger logger = LogManager.getLogger(LogExample.class); public static void main(String[] args) { logger.info("Hello from Log4j 2 with Spring Boot!"); } }
Debug
Known issues
breakingLog4j 2.26.0 requires Spring Boot 3.x; not compatible with Spring Boot 2.x
fix
Use log4j-spring-boot 2.x for Spring Boot 2.x compatibility
affects: >=2.26.0
Upgrade
Version history
2.26.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
19 hits · last 30 days
node
18
Amazon
1
Resources
log4j-spring-boot — mvn dependency:get log4j-spring-boot · libregistry