Skip to content

Commit 92ce94b

Browse files
committed
Align default log levels for Log4j2 and Logback
Fixes gh-21293
1 parent 3fe4fb1 commit 92ce94b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/logback/DefaultLogbackConfiguration.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ private void base(LogbackConfigurator config) {
109109
config.logger("org.apache.tomcat.util.net.NioSelectorPool", Level.WARN);
110110
config.logger("org.eclipse.jetty.util.component.AbstractLifeCycle", Level.ERROR);
111111
config.logger("org.hibernate.validator.internal.util.Version", Level.WARN);
112+
config.logger("org.springframework.boot.actuate.endpoint.jmx", Level.WARN);
112113
}
113114

114115
private Appender<ILoggingEvent> consoleAppender(LogbackConfigurator config) {

spring-boot-project/spring-boot/src/main/resources/org/springframework/boot/logging/logback/defaults.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@ Default logback configuration provided for import
1818
<logger name="org.apache.tomcat.util.net.NioSelectorPool" level="WARN"/>
1919
<logger name="org.eclipse.jetty.util.component.AbstractLifeCycle" level="ERROR"/>
2020
<logger name="org.hibernate.validator.internal.util.Version" level="WARN"/>
21+
<logger name="org.springframework.boot.actuate.endpoint.jmx" level="WARN"/>
2122
</included>

0 commit comments

Comments
 (0)