Skip to content

Commit ee1cab7

Browse files
committed
Improve LevelRemappingAppender documentation
Fixes gh-2443
1 parent 54f334e commit ee1cab7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -868,9 +868,9 @@ Log files will rotate when they reach 10 Mb and as with console output, `ERROR`,
868868
and `INFO` level messages are logged by default.
869869

870870

871+
871872
[[boot-features-custom-log-levels]]
872873
=== Log Levels
873-
874874
All the supported logging systems can have the logger levels set in the Spring
875875
`Environment` (so for example in `application.properties`) using '`+logging.level.*=LEVEL+`'
876876
where '`LEVEL`' is one of TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF. Example
@@ -882,11 +882,15 @@ where '`LEVEL`' is one of TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF. Example
882882
logging.level.org.hibernate: ERROR
883883
----
884884

885+
NOTE: By default Spring Boot remaps Thymeleaf `INFO` messages so that they are logged at
886+
`DEBUG` level. This helps to reduce noise in the standard log output. See
887+
{sc-spring-boot}/logging/logback/LevelRemappingAppender.{sc-ext}[`LevelRemappingAppender`]
888+
for details of how you can apply remapping in your own configuration.
889+
885890

886891

887892
[[boot-features-custom-log-configuration]]
888893
=== Custom log configuration
889-
890894
The various logging systems can be activated by including the appropriate libraries on
891895
the classpath, and further customized by providing a suitable configuration file in the
892896
root of the classpath, or in a location specified by the Spring `Environment` property

0 commit comments

Comments
 (0)