directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Niclas Hedhman <nic...@hedhman.org>
Subject Re: [jira] Commented: (DIREVE-171) add log4j config patch
Date Mon, 27 Jun 2005 04:05:55 GMT
On Sunday 26 June 2005 23:11, Emmanuel Lecharny (JIRA) wrote:
> Even better, add a
> private static final boolean DEBUG = log.isDebugEnabled();
>
> and use it this way :
>
> if (DEBUG)
> {
>    log.debug(...)
> }
>
> As DEBUG will be evaluated only once, the test is faster (no function
> called).

Just a quick question...

Is this really the recommended way of doing things? That means I can't easily 
change the Level while the application is running.

Especially for a 24/7 server system as ApacheDS, this should be of special 
concern, don't you think.


Cheers
Niclas

Mime
View raw message