Registry / logging / spring-boot-starter-logging

spring-boot-starter-logging

JSON →
library4.0.6javamavenunverified

Spring Boot Starter Logging provides default logging configuration using Logback and SLF4J for Spring Boot applications.

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

Logger
org.slf4j.Logger

Logs an info message using SLF4J Logger obtained from LoggerFactory.

import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class Example { private static final Logger logger = LoggerFactory.getLogger(Example.class); public static void main(String[] args) { logger.info("Application started"); } }
Debug
Known issues
gotchaSpring Boot 3.x uses Logback as default; if you switch to Log4j2, exclude spring-boot-starter-logging and add spring-boot-starter-log4j2.
fix
Exclude spring-boot-starter-logging and include spring-boot-starter-log4j2 in your pom.xml.
affects: >=3.0.0
Upgrade
Version history
4.0.6latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
40 hits · last 30 days
node
38
Resources
spring-boot-starter-logging — mvn dependency:get spring-boot-starter-logging · libregistry