You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by bu...@apache.org on 2004/01/29 14:13:27 UTC

DO NOT REPLY [Bug 26521] New: - Logger.isXXXEnabled() always returns TRUE using Log4J with the ECM

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26521>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26521

Logger.isXXXEnabled() always returns TRUE using Log4J with the ECM

           Summary: Logger.isXXXEnabled() always returns TRUE using Log4J
                    with the ECM
           Product: Avalon
           Version: 1.0b1
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Excalibur
        AssignedTo: dev@avalon.apache.org
        ReportedBy: bguijt@hotmail.com


If you configure the ExcaliburComponentManager with Log4J, all
'getLogger().isXXXEnabled()' calls to LogEnabled components return true,
regardless the configured log priorities.

The attached patch for avalon-
excalibur/component/src/java/org/apache/avalon/excalibur/component/Logger2LogKit
Manager.java fixes this problem.

The same code snippet is used in the Avalon framework impl, and a patch for 
that snippet is attached as well (for 
avalon/framework/impl/src/java/org/apache/avalon/framework/logger/LogKit2AvalonL
oggerAdapter.java).

Cheers!
Bart Guijt

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org