[Bug 196] New: incompatible with ReportNG

http://bugzilla.slf4j.org/show_bug.cgi?id=196 Summary: incompatible with ReportNG Product: SLF4J Version: 1.6.x Platform: All URL: http://reportng.uncommons.org/ OS/Version: All Status: NEW Severity: normal Priority: P1 Component: log4j-over-slf4j AssignedTo: slf4j-dev@qos.ch ReportedBy: ryo.away@gmail.com When attempting to use log4j-over-slf4j to supply the log4j dependency to Apache ReportNG, failure occurs because org.apache.log4j.Category does not implement setAdditivity(). -- 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=196 Robert Elliot <robert@teviotia.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |robert@teviotia.co.uk --- Comment #1 from Robert Elliot <robert@teviotia.co.uk> 2010-08-13 19:52:21 --- If ReportNG has that strong a dependency on Log4J that it's trying to set the additivity of a category then I would say it's a hard dependency and not suitable for piping to SLF4J. Think of it as a library in a webapp that casts HttpServletRequest to a Tomcat specific implementation. If your webapp depends on that library then you're stuck with Tomcat. Log4j over slf4j is only meant to work with libraries that use the simplest methods on log4j - ie Logger.getLogger and then the trace/debug/info/warn/error methods. It isn't meant to support the whole log4j api. -- 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=196 --- Comment #2 from Richard Taylor <ryo.away@gmail.com> 2010-08-13 20:01:45 --- (In reply to comment #1)
If ReportNG has that strong a dependency on Log4J that it's trying to set the additivity of a category then I would say it's a hard dependency and not suitable for piping to SLF4J.
Think of it as a library in a webapp that casts HttpServletRequest to a Tomcat specific implementation. If your webapp depends on that library then you're stuck with Tomcat.
Log4j over slf4j is only meant to work with libraries that use the simplest methods on log4j - ie Logger.getLogger and then the trace/debug/info/warn/error methods. It isn't meant to support the whole log4j api.
I see your point. The purpose of this bug is to request expansion of the implementation. If that's not feasible or outside of the scope of the project, I'll resort to filing a bug with ReportNG to change their dependency. Let me know so I can proceed to the next action. -- 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=196 --- Comment #3 from Robert Elliot <robert@teviotia.co.uk> 2010-08-13 20:25:51 --- It's not actually my decision, but I'd be very surprised if the answer is anything other than "won't fix". SLF4J is a very simple logging interface, with multiple widely diverging implementations; it has no notion of additivity, which is a specifically Log4J implementation detail, so what would log4j-over-slf4j do with the call? All it could do is ignore it, which would presumably have negative knock on effects for the library that cares about a Log4J logger's additivity setting. You could still use SLF4j - just use slf4j-logj12.jar as your implementation so that the ultimate logging implementation is log4j, and don't use slf4j-over-log4j. -- 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=196 Richard Taylor <ryo.away@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX --- Comment #4 from Richard Taylor <ryo.away@gmail.com> 2010-08-13 21:08:20 --- (In reply to comment #3) I suppose you are right. Logback, the implementation we are using, could do something with additivity, but not via slf4j. We can't use slf4j-logj12 because we use log4j-over-slf4j for all other log4j dependencies in the application, since our design uses logback as the final logger. I will look into getting ReportNG to become compatible with slf4j, so I am dropping this bug. -- Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
participants (1)
-
bugzilla-daemon@pixie.qos.ch