[ANN] SimpleIntentions 1.5.1 - Surround log statements with log level check
I've added an inspection to the SimpleIntentions plugin that reports log4j log statements (Logger.debug() and/or Logger.info(), configurable) that are not surrounded by a log level check (Logger.isDebugEnabled(), Logger.isInfoEnabled()). Log statements with a simple log message expression can be ignored (configurable).
Before:
LOGGER.debug(abc);
After:
if(LOGGER.isDebugEnabled()) {
LOGGER.debug(abc);
}
etienne
Please sign in to leave a comment.