[jboss-dev] log.debugf usage leads to slow code

Carlo de Wolf cdewolf at redhat.com
Tue Sep 28 05:42:26 EDT 2010


  Hi guys,

Just something I spotted in some random code:

log.debugf("Blah blah %s", value.toString().replace('\n', ' '));

I hope this is something isolated, because it completely obliterates the 
allowance of not having log.isDebugEnabled().

Please be a bit more careful while using the new log API.

Carlo


More information about the jboss-development mailing list