Provide configuration property to disable console logging

Add `logging.console.enabled` which when set will cause the
`logging.threshold.console` property to be set to `OFF`.

Closes gh-46592
This commit is contained in:
Phillip Webb
2025-08-20 19:17:30 -07:00
parent 7140be8751
commit ac2e6972d7
5 changed files with 32 additions and 0 deletions
@@ -71,6 +71,8 @@ Enabling the debug mode does _not_ configure your application to log all message
Alternatively, you can enable a "`trace`" mode by starting your application with a `--trace` flag (or `trace=true` in your `application.properties`).
Doing so enables trace logging for a selection of core loggers (embedded container, Hibernate schema generation, and the whole Spring portfolio).
If you wan to disable console based logging, you can set the configprop:logging.console.enabled[] property to `false`.
[[features.logging.console-output.color-coded]]