On Tuesday 08 January 2002 02:48 pm, Ihor Strutynskyj wrote:
> The other thing I would like to mention is:
> Why org.apache.log.Logger.log.warn() (or .info(), .error(), .debug()) call
> is always wrapped with if (log.isWarnEnabled()) {}? The
> org.apache.log.Logger has already isXxxxEnabled() wrappers in corresponding
> xxxx() functions. The code would look much simpler without those wrappers.

Speed, mainly for debug() statements. If the string you want to log is 
expensive to create, you can skip the creation by testing the loglevel first.
-pete

-- 
peter royal -> [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to