On Fri, 2004-12-10 at 14:23, Simon Kitching wrote:
> Alas, I don't think that is efficient enough. This approach would
> require a new Message object to be created *before* each call,
> regardless of whether that logging level was enabled or not.
>
> Of course, each call could be wrapped in:
> if (log.isWarnEnabled()) {
> log.warn(new Message(....));
> }
> but that would get tiring very quickly!
Not to mention that it is pretty much equivalent to:
if (log.isWarnEnabled()) {
// compute internationalised message by hand
// using a resource bundle, key + params
log.warn(msgString);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]