Allow to disable debug property
Previously, adding `debug=false` in the environment had no effect as the mere presence of the property was used to enable the debug mode. This commit makes sure to also check the value and ignore the property if it is set to `false`. The documentation has also been updated to refer to the `trace` property. Closes gh-5374
This commit is contained in:
@@ -1072,9 +1072,14 @@ default `ERROR`, `WARN` and `INFO` level messages are logged. You can also enabl
|
||||
NOTE: you can also specify `debug=true` in your `application.properties`.
|
||||
|
||||
When the debug mode is enabled, a selection of core loggers (embedded container, Hibernate
|
||||
and Spring) are configured to output more information. Enabling the debug mode does _not_
|
||||
and Spring Boot) are configured to output more information. Enabling the debug mode does _not_
|
||||
configure your application to log all messages with `DEBUG` level.
|
||||
|
||||
Alternatively, you can enable a "`trace`" mode by starting your application with a `--trace`
|
||||
flag (or `trace=true` in your `application.properties`). This will enable trace logging for a
|
||||
selection of core loggers (embedded container, Hibernate schema generation and the whole Spring
|
||||
portfolio).
|
||||
|
||||
[[boot-features-logging-color-coded-output]]
|
||||
==== Color-coded output
|
||||
If your terminal supports ANSI, color output will be used to aid readability. You can set
|
||||
|
||||
Reference in New Issue
Block a user