Commit 506ee897 authored by Phillip Webb's avatar Phillip Webb

Document how to configure root logging level

Fixes gh-2872
parent 5d311d62
...@@ -1138,10 +1138,12 @@ are not managed by spring Boot. ...@@ -1138,10 +1138,12 @@ are not managed by spring Boot.
All the supported logging systems can have the logger levels set in the Spring All the supported logging systems can have the logger levels set in the Spring
`Environment` (so for example in `application.properties`) using `Environment` (so for example in `application.properties`) using
'`+logging.level.*=LEVEL+`' where '`LEVEL`' is one of TRACE, DEBUG, INFO, WARN, ERROR, '`+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"] [source,properties,indent=0,subs="verbatim,quotes,attributes"]
---- ----
logging.level.root=WARN
logging.level.org.springframework.web=DEBUG logging.level.org.springframework.web=DEBUG
logging.level.org.hibernate=ERROR logging.level.org.hibernate=ERROR
---- ----
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment