http://bugzilla.slf4j.org/show_bug.cgi?id=138
Summary: Class path contains multiple SLF4J bindings
Product: SLF4J
Version: 1.5.x
Platform: All
OS/Version: Linux
Status: NEW
Severity: minor
Priority: P3
Component: Core API
AssignedTo: [email protected]
ReportedBy: [email protected]
Hi,
Problem description:
"Class path contains multiple SLF4J bindings" message appears in WebLogic 10.3
log during startup of an application with SLF4J 1.5.8.
The problem is that exactly the same binding is printed twice and therefore the
warning is irrelevant:
SLF4J: Found binding in
[zip:/servers/WLServer/tmp/_WL_user/MyApplication/he3hgg/epc.jar!/org/slf4j/impl/StaticLoggerBinder.class]
Suggested solution:
In org.slf4j.LoggerFactory.singleImplementationSanityCheck() method in line 192
getResources somehow returns 2 exactly the same bindings:
Enumeration paths = LoggerFactory.class.getClassLoader().getResources(
STATIC_LOGGER_BINDER_PATH);
So using Set implementationSet = new HashList();
in line 194 instead of List implementationList = new ArrayList();
will solve such irrelevant warning.
--
Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
dev mailing list
[email protected]
http://www.slf4j.org/mailman/listinfo/dev