[Bug 279] New: Class org.apache.log4j.Category is missing class setLevel(Level)

http://bugzilla.slf4j.org/show_bug.cgi?id=279 Summary: Class org.apache.log4j.Category is missing class setLevel(Level) Product: SLF4J Version: unspecified Platform: Macintosh OS/Version: All Status: NEW Severity: normal Priority: P3 Component: log4j-over-slf4j AssignedTo: slf4j-dev@qos.ch ReportedBy: thorsten.Moeller@unibas.ch There is an API incompatibility in log4j-over-slf4j 1.7.2 (and earlier versions) with the original Log4J 1.2.x: the class org.apache.log4j.Category is missing the method "public void setLevel(org.apache.log4j.Level)". Even if it would do nothing in log4j-over-slf4j (as does getLevel(), which is not missing), it should be present, IMHO. I have not checked whether there are more incompatibilities, I have just noticed it when trying to compile one of our projects with log4j-over-slf4j. -- Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.

http://bugzilla.slf4j.org/show_bug.cgi?id=279 Christian Trutz <christian.trutz@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |christian.trutz@gmail.com --- Comment #1 from Christian Trutz <christian.trutz@gmail.com> 2012-11-03 13:14:20 CET --- Hi Thorsten, can you provide a patch? Which project have you tryed to compile against log4j-over-slf4j? I think you have runtime problems and not compile time probs ... Christian -- Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.

http://bugzilla.slf4j.org/show_bug.cgi?id=279 --- Comment #2 from Thorsten <thorsten.Moeller@unibas.ch> 2012-11-03 17:01:47 CET --- Checking the class Category closer, there are more methods that are missing (e.g. setPriority(Priority), shutdown(), setAdditivity(boolean)). I presume they were all left out deliberately. The reason seems to be that they cannot be supported in general for every log backend; hence, they would do nothing anyway. Maybe it makes more sense, in our case, to refactor our project either to use SLF4J directly rather than the indirection log4j-over-slf4j or not to use setLevel(..). Seems reasonable to ignore this issue and close it. -- Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.

http://bugzilla.slf4j.org/show_bug.cgi?id=279 Thorsten <thorsten.Moeller@unibas.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID -- Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.

http://bugzilla.slf4j.org/show_bug.cgi?id=279 Thorsten <thorsten.Moeller@unibas.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED -- Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.

http://bugzilla.slf4j.org/show_bug.cgi?id=279 --- Comment #3 from Alfredo Ramos <alfredor@causata.com> --- Created attachment 95 --> http://bugzilla.slf4j.org/attachment.cgi?id=95&action=edit Patch adding missing method Suggested change for Category just ignoring setLevel -- You are receiving this mail because: You are the assignee for the bug.

http://bugzilla.slf4j.org/show_bug.cgi?id=279 Alfredo Ramos <alfredor@causata.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |REOPENED CC| |alfredor@causata.com Hardware|Macintosh |All Version|unspecified |1.7.x Resolution|INVALID |--- --- Comment #4 from Alfredo Ramos <alfredor@causata.com> --- I have reopened this bug as Category class still doesn't have the setLevel method, and it is affecting our system. See previous attachment for suggested patch. -- You are receiving this mail because: You are the assignee for the bug.

http://bugzilla.slf4j.org/show_bug.cgi?id=279 Alfredo Ramos <alfredor@causata.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ipe4enko@gmail.com --- Comment #5 from Alfredo Ramos <alfredor@causata.com> --- *** Bug 286 has been marked as a duplicate of this bug. *** -- You are receiving this mail because: You are the assignee for the bug.

http://bugzilla.slf4j.org/show_bug.cgi?id=279 Christian Trutz <christian.trutz@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |ASSIGNED Assignee|slf4j-dev@qos.ch |christian.trutz@gmail.com -- You are receiving this mail because: You are the assignee for the bug.
participants (1)
-
bugzilla-daemon@qos.ch