[Bug 293] New: Unusable with Logback-ContextSelectors.

http://bugzilla.slf4j.org/show_bug.cgi?id=293 Summary: Unusable with Logback-ContextSelectors. Product: SLF4J Version: 1.7.x Platform: PC OS/Version: Windows XP Status: NEW Severity: blocker Priority: P1 Component: jcl-over-slf4j AssignedTo: slf4j-dev@qos.ch ReportedBy: thomas.moeller@continentale.de Caching instances of Slf4j-Loggers prevents Logback-ContextSelectors from working. (See also bug 291 for a similar issue with the log4j bridge.) The caching code can be found in org.apache.commons.logging.impl.SLF4JLogFactory: public Log getInstance(String name) throws LogConfigurationException { Log instance = null; // protect against concurrent access of loggerMap synchronized (loggerMap) { instance = (Log) loggerMap.get(name); if (instance == null) { Logger logger = LoggerFactory.getLogger(name); if(logger instanceof LocationAwareLogger) { instance = new SLF4JLocationAwareLog((LocationAwareLogger) logger); } else { instance = new SLF4JLog(logger); } loggerMap.put(name, instance); } } return (instance); } -- 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=293 Thomas Möller <thomas.moeller@continentale.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|blocker |major -- 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=293 Thomas Möller <thomas.moeller@continentale.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |thomas.moeller@continentale | |.de -- 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=293 Daniel Guggi <daniel.guggi@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |daniel.guggi@gmail.com --- Comment #1 from Daniel Guggi <daniel.guggi@gmail.com> 2013-04-02 15:51:38 CEST --- we also have this problem some of our appliactions use spring - therefore the jcl-over-slf4j bridge is used maybe caching (in bridges) should be configurable (jvm-options etc.)? -- 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@qos.ch