2003. január 27. 16:18 dátummal ROSSEL Olivier ezt írtad:
> The if (log.isXXXEnabled) is really necessary?
> You cannot filter depending on the log level, at application level?
No.
But if you create a complex error text which takes time to assembly eg:
log.debug("obj1: " + obj1 + " obj2: " + obj2 + ...);
then this will be evaluated regardless the loglevel. However if you put this
into a conditional block:
if (log.isDebugEnabled()) {
...
}
then it will be evaluated only if it is necessary.
Hth,
Tib
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>