Why did you do that if you weren’t asked to? Improving performance means doing just the minimum tasks. As stated in “Performance” section, http://logging.apache.org/log4j/1.2/manual.html , we’d better check if we need creating tonns of strings in java. So
if (log.isDebugEnabled()) {
log.debug(“Create” + “this” + message + “string”);
}
prevents creating unneeded debug/trace strings.