Document how to configure root logging level

Fixes gh-2872
This commit is contained in:
Phillip Webb 2015-12-17 10:55:46 +00:00
parent 5d311d6203
commit 506ee897f3
1 changed files with 3 additions and 1 deletions

View File

@ -1138,10 +1138,12 @@ are not managed by spring Boot.
All the supported logging systems can have the logger levels set in the Spring
`Environment` (so for example in `application.properties`) using
'`+logging.level.*=LEVEL+`' where '`LEVEL`' is one of TRACE, DEBUG, INFO, WARN, ERROR,
FATAL, OFF. Example `application.properties`:
FATAL, OFF. The `root` logger can be configured using `logging.level.root`.
Example `application.properties`:
[source,properties,indent=0,subs="verbatim,quotes,attributes"]
----
logging.level.root=WARN
logging.level.org.springframework.web=DEBUG
logging.level.org.hibernate=ERROR
----