Whenever using a log level, one should check if the loglevel is actually enabled, or otherwise skip the associate String creation and manipulation. Example:
// Add this for performance
if (log.isDebugEnabled() { ...
  log.debug("This happens");