Rob Godfrey created QPID-6620:
---------------------------------

             Summary: [Java Broker] Restore the behaviour of the 
if(LOGGER.isDebugEnabled()) idiom (but restrict its use)
                 Key: QPID-6620
                 URL: https://issues.apache.org/jira/browse/QPID-6620
             Project: Qpid
          Issue Type: Improvement
          Components: Java Broker
    Affects Versions: 6.0 [Java]
            Reporter: Rob Godfrey
            Assignee: Rob Godfrey
             Fix For: 6.0 [Java]


Recent changes to the logging mechanism in the broker mean that us of the idiom

{code}
if(_logger.isDebugEnabled())
{
    _logger.debug(...)'
}
{code}

no longer prevents the debug statement being evaluated when debug logging is 
not switched on.

In order to restore this behaviour we need to add a "TurboFilter" which can 
evaluate whether the logger will actually log the statement.

Additionally we should reduce the use of this idiom and instead use the ability 
of logback/slf4j to use patterns with parameters rather than dynamically 
building up the logged string.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to