[Bug 311] New: Enable swapping of NOPLogger in SubstituteLoggerFactory

http://bugzilla.slf4j.org/show_bug.cgi?id=311 Priority: P5 Bug ID: 311 Assignee: slf4j-dev@qos.ch Summary: Enable swapping of NOPLogger in SubstituteLoggerFactory Severity: enhancement Classification: Unclassified OS: Linux Reporter: chetan.mehrotra@gmail.com Hardware: PC Status: NEW Version: 1.7.x Component: Core API Product: SLF4J Currently the SubstituteLoggerFactory returns a NOPLogger while the LoggerFactory is getting initialzed. Due to this any Logger created during initialization period are not useful for the lifetime of the system. This is also explained here [1]. We are facing this issue while using Slf4j with logback in Sling which is an OSGi applicatopn [2] The fix suggested involves changes in the application using Slf4j. It would be simpler if the SubstituteLoggerFactory returns some forms of SubstitutableLogger which can delegate to a different logger impl. By default it uses NOPlogger. But later the delegate can be set to actual logger. [1] http://www.slf4j.org/codes.html#substituteLogger [2] https://issues.apache.org/jira/browse/SLING-3340 -- You are receiving this mail because: You are the assignee for the bug.

http://bugzilla.slf4j.org/show_bug.cgi?id=311 --- Comment #1 from Chetan Mehrotra <chetan.mehrotra@gmail.com> --- A possible fix is provided as part of https://github.com/qos-ch/slf4j/pull/58 -- You are receiving this mail because: You are the assignee for the bug.

http://bugzilla.slf4j.org/show_bug.cgi?id=311 Ceki Gulcu <listid@qos.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |listid@qos.ch Resolution|--- |FIXED -- You are receiving this mail because: You are the assignee for the bug.

http://bugzilla.slf4j.org/show_bug.cgi?id=311 --- Comment #2 from Ceki Gulcu <listid@qos.ch> --- Thanks Chetan. Your patch has been applied. -- You are receiving this mail because: You are the assignee for the bug.

http://bugzilla.slf4j.org/show_bug.cgi?id=311 --- Comment #3 from Chetan Mehrotra <chetan.mehrotra@gmail.com> --- Thanks Ceki for the fast response!! Just for our release planning purpose do you have any plans to cut a new Slf4j release in coming days/months. Any estimates on that would be helpful -- You are receiving this mail because: You are the assignee for the bug.
participants (1)
-
bugzilla-daemon@qos.ch