Java code of the week… +
June 18th, 2009 by roman.stumm
private void log(String message) {
Logger log = Logger.getLogger(this.getClass());
if(log.isDebugEnabled()) {
if(Thread.currentThread() != null) {
log.debug(Thread.currentThread().getName() + ": " + message);
} else {
log.debug(message);
}
}
}
This entry was posted
on Thursday, June 18th, 2009 at 9:02 am and is filed under Deutsch.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.