To follow logger coding conventions and to optimize performance by avoiding unnecessary object allocations, we should consider adding log flag queries to logging statements, at least to those that create parameter objects.
logger.debug("message", params);
should look like
if(logger.isDebugEnabled())
{
logger.debug("message", params);
}
To follow logger coding conventions and to optimize performance by avoiding unnecessary object allocations, we should consider adding log flag queries to logging statements, at least to those that create parameter objects.
should look like