For example: if (logger.isTraceEnabled()) { logger.debug("some log message"); }
if (logger.isTraceEnabled()) { logger.debug("some log message"); }
This inspection understands the java.util.logging, log4j, Log4j 2, Apache Commons Logging and SLF4J logging frameworks.