|Summary:||Add missing Logger#isErrorEnabled and isWarningEnabled methods|
|Product:||Log4j - Now in Jira||Reporter:||Gary Gregory <ggregory>|
|Attachments:||Missing methods and unit tests|
Description Gary Gregory 2008-04-01 08:07:18 UTC
Created attachment 21751 [details] Missing methods and unit tests Add missing isXyzEnabled methods: - isErrorEnabled - isWarningEnabled Since 1.3 is dead, we had to port back from 1.3alpha7 to 1.2. But some of our generated code calls isErrorEnabled which existed in 1.3.
Comment 1 Thorbjørn Ravn Andersen 2008-08-02 14:50:10 UTC
I understand that the error and warn levels should be used so rarely that these guard methods should not be necessary. Personally I use the slf4j interface to log4j which give backend independence and a simple way to avoid using these guards. You might find http://slf4j.org/faq.html#logging_performance interesting. I suggest that this should be a WONTFIX