Hi, I've seen log statements like
log.debug("Process " + name + " type=" + type);
in our code - note that this is inefficient, using
log.debug("Process {} type={}", name, type);
lets log4j avoid computing the log message if the log level is
disabled, without requiring boring isDebugEnabled() tests.
For more than 2 log arguments you can use the log.debug("{} {} {} {}",
new Object[] { a, b, c, d}) form.
-Bertrand
