Logback always shows status statements if there are configuration errors
Logback will log its own status statements to the console if you have any configuration problems resulting in WARN or ERROR messages, which will also show INFO messages. The Logback levels are, from lowest level to highest level:
TRACE < DEBUG < INFO < WARN < ERROR
(See Logback Architecture: error levels for details.)
See Logback status statements
To see Logback's status statements in the console (standard out) regardless of whether or not there are any configuration errors, set the debug attribute to true in the configuration element.
1 2 3 | < configuration debug = "true" > ... < configuration > |
Suppress Logback status statements
To suppress display of Logback's status statements to the console, omit the debug attribute in the configuration element or set it to false. This will not suppress status statements if there are configuration problems with Logback.
1 2 3 | < configuration > ... </ configuration > |
If you can't fix the configuration problem but want to suppress the status statements, you can configure an alternate StatusListener like NopStatusListener to completely remove status statements.
1 2 3 4 | < configuration > < statusListener class = "ch.qos.logback.core.status.NopStatusListener" /> ... </ configuration > |
Logback Configuration: Automatic printing of status messages in case of warning or errors
Logback Configuration: Show status data
Logback Configuration