Inspectopedia
 
2024.3

Log condition does not match logging call

Warning
Reliability
New
Last modified: 03 December 2024

Reports is log enabled for conditions of if statements that do not match the log level of the contained logging call.

For example:

This inspection understands the java.util.logging, Log4j, Log4j2, Apache Commons Logging and the SLF4J logging frameworks.