Skip to content

Jar is shaded with SL4J classes that prevents other logging binders from working as expected. #9

@GoogleCodeExporter

Description

@GoogleCodeExporter
What steps will reproduce the problem?

Add SLF4J dependencies including a SLF4J binding other than the one used by 
flickrj-android. I have logback in my example.

What is the expected output? What do you see instead?
SLF4J should be able to find the chosen logging implementations configuration 
and log to the expected appenders.  Logging is being configured based on the 
SL4J classes shaded in and the following warning.

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in 
[jar:file:/C:/Users/username/projects/project/lib/flickrj-android-1.0.3.20120619
135416.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in 
[jar:file:/C:/Users/username/.gradle/caches/artifacts-13/filestore/ch.qos.logbac
k/logback-classic/1.0.6/jar/ba738848da3e6fffa0107771c75546eb6d407f3c/logback-cla
ssic-1.0.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.JDK14LoggerFactory]

What version of the product are you using? On what operating system?

flickrj-android-1.0.3.20120619135416

Please provide any additional information below.

I have attached my Gradle file maybe this will help.

Original issue reported on code.google.com by jashat...@gmail.com on 14 Jul 2012 at 1:01

Attachments:

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions