dev@glassfish.java.net

Re: Please consider avoiding concatenated log messages

From: Jason Lee <jason.d.lee_at_oracle.com>
Date: Tue, 26 Jul 2011 13:05:55 -0500

On 7/26/11 1:02 PM, Bobby Bissett wrote:
> They're both slower than:
>
> if (logger.isLoggable(Level.FINE)) {
> // now log something that requires an operation
> }
>
> "Don't do that." :)
Haha. Fair enough. I think the parameterized approach is more readable,
so...do both. :P

Jason