[Bug 274] New: osgi-over-slf4j creates a named logger that includes extra properties

http://bugzilla.slf4j.org/show_bug.cgi?id=274 Summary: osgi-over-slf4j creates a named logger that includes extra properties Product: SLF4J Version: unspecified Platform: Macintosh OS/Version: Mac OS X 10.3 Status: NEW Severity: trivial Priority: P1 Component: Unspecified AssignedTo: slf4j-dev@qos.ch ReportedBy: matt@thebishops.org Assume bundle having this in MANIFEST.MF: Bundle-SymbolicName: org.eclipse.ui.workbench; singleton:=true Then in result of String name = (String) bundle.getHeaders().get(Constants.BUNDLE_SYMBOLICNAME); in Equinox 3.7 (Indigo) is incorrect string "org.eclipse.ui.workbench; singleton:=true" Result of bundle.getSymbolicName(); is this time correct: "org.eclipse.ui.workbench" Please, do you have same results as me in e.g. Felix (or whatever you use)? If so, I fill fix constructor from public LogServiceImpl(Bundle bundle) { String name = (String) bundle.getHeaders().get( Constants.BUNDLE_SYMBOLICNAME); String version = (String) bundle.getHeaders().get( Constants.BUNDLE_VERSION); delegate = LoggerFactory.getLogger(name + '.' + version); } to public LogServiceImpl(Bundle bundle) { String name = bundle.getSymbolicName(); String version = bundle.getVersion(); delegate = LoggerFactory.getLogger(name + '.' + version); } -- 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=274 --- Comment #1 from Matt Bishop <matt@thebishops.org> 2012-09-28 20:22:06 CEST --- This commit will fix the bug: https://github.com/mattbishop/slf4j/commit/b1a5d650f4f78a0a2181c7883456fcf80... -- 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=274 Libor Jelinek <ljelinek@virtage.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ljelinek@virtage.com -- 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=274 Matt Bishop <matt@thebishops.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Matt Bishop <matt@thebishops.org> 2012-09-30 16:41:42 CEST --- Commit: b1a5d650f4f78a0a2181c7883456fcf8054b623e https://github.com/qos-ch/slf4j/commit/b1a5d650f4f78a0a2181c7883456fcf8054b6... -- 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