Skip to content

Commit 2ba2bdd

Browse files
committed
Add note to docs about configuration of Log4j 2's JDK logging adapter
Closes gh-11660
1 parent 9da6ddb commit 2ba2bdd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

spring-boot-docs/src/main/asciidoc/howto.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1653,6 +1653,11 @@ requirements (e.g. including having Tomcat use `java.util.logging` but configuri
16531653
output using Log4j 2). See the Actuator Log4j 2 samples for more detail and to see it in
16541654
action.
16551655

1656+
NOTE: To ensure that debug logging performed using `java.util.logging` is routed into
1657+
Log4j 2, configure its https://logging.apache.org/log4j/2.0/log4j-jul/index.html[JDK
1658+
logging adapter] by setting the `java.util.logging.manager` system property to
1659+
`org.apache.logging.log4j.jul.LogManager`.
1660+
16561661

16571662

16581663
[[howto-configure-log4j-for-logging-yaml-or-json-config]]

0 commit comments

Comments
 (0)