Loom includes its own Log class that extends commons-logging with some extra features:
Example of Log use:
public class Foo {
// the logging class is discovered by examining the stack trace of this call
private static Log log = Log.getLog();
public void doSomething() {
// Notice the commas instead of '+'
log.debug("User ", userName, " has accepted ", type, ": ", id);
}
}
It is important that your Log attribute is static and private, if possible. Log arguments will get concatenated only if the log statement gets written somewhere.