Bug 44727 - Add missing Logger#isErrorEnabled and isWarningEnabled methods
Summary: Add missing Logger#isErrorEnabled and isWarningEnabled methods
Status: NEEDINFO
Alias: None
Product: Log4j - Now in Jira
Classification: Unclassified
Component: Other (show other bugs)
Version: 1.2
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: log4j-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-01 08:07 UTC by Gary Gregory
Modified: 2008-08-02 14:50 UTC (History)
0 users



Attachments
Missing methods and unit tests (4.41 KB, text/plain)
2008-04-01 08:07 UTC, Gary Gregory
Details

Note You need to log in before you can comment on or make changes to this bug.
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