I suggest using Lift's Logger (it can be configured to use slf4j,
search the archives for details). It has the nice feature that the log
message is lazily evaluated, so you don't have to litter your code with
if(log.isDebugEnabled) log.debug(...)
Also, I create a trait:
trait Logging {
val log = LogBoot.loggerByName(this.getClass.getName)
}
This makes it easy to have logging in a class:
class myclass extends MyParent with Logging {
log.debug("logggin stuff")
}
/Jeppe