Skip to content

Commit 8f4278c

Browse files
committed
Update starters to route Log4j2 API into SLF4J by default
Closes gh-10847
1 parent 2889ef9 commit 8f4278c

File tree

2 files changed

+8
-0
lines changed
  • spring-boot-project/spring-boot-starters
    • spring-boot-starter-data-elasticsearch
    • spring-boot-starter-logging

2 files changed

+8
-0
lines changed

spring-boot-project/spring-boot-starters/spring-boot-starter-data-elasticsearch/pom.xml

+4
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727
<groupId>org.slf4j</groupId>
2828
<artifactId>jcl-over-slf4j</artifactId>
2929
</exclusion>
30+
<exclusion>
31+
<groupId>org.apache.logging.log4j</groupId>
32+
<artifactId>log4j-core</artifactId>
33+
</exclusion>
3034
</exclusions>
3135
</dependency>
3236
</dependencies>

spring-boot-project/spring-boot-starters/spring-boot-starter-logging/pom.xml

+4
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
<groupId>ch.qos.logback</groupId>
1919
<artifactId>logback-classic</artifactId>
2020
</dependency>
21+
<dependency>
22+
<groupId>org.apache.logging.log4j</groupId>
23+
<artifactId>log4j-to-slf4j</artifactId>
24+
</dependency>
2125
<dependency>
2226
<groupId>org.slf4j</groupId>
2327
<artifactId>jul-to-slf4j</artifactId>

0 commit comments

Comments
 (0)