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