question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

tinylog 2.4.0-M2 and slf4j-api:2.0.0-alpha5 : Class path contains slf4j bindings targeting api versions prior to 1.8

See original GitHub issue

Describe the bug

Have a fully modularized JPMS Gradle java project and on trying to use slf4j and tinylog together, I get the following error:

SLF4J: No SLF4J providers were found.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#noProviders for further details.
SLF4J: Class path contains SLF4J bindings targeting slf4j-api versions prior to 1.8.
SLF4J: Ignoring binding found at [jar:file:///Users/christophs/.gradle/caches/modules-2/files-2.1/org.tinylog/slf4j-tinylog/2.4.0-M2/1206916900881747bf825a6059031961f6f82105/slf4j-tinylog-2.4.0-M2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#ignoredBindings for an explanation.

To Reproduce Steps to reproduce the behavior: 1.
2. 3.

Environment

    implementation 'org.slf4j:slf4j-api:2.0.0-alpha5'
    implementation "org.tinylog:tinylog-api:2.4.0-M2"
    implementation "org.tinylog:slf4j-tinylog:2.4.0-M2"

Java version: 16

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
pmwmediacommented, Dec 10, 2021

I found the cause for the issue and going to release a bug fix tonight.

1reaction
pmwmediacommented, Dec 6, 2021

I have just released tinylog 2.4.0. It should work now. If not, please feel free to reopen this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

SLF4J Warning: Class Path Contains Multiple SLF4J Bindings
When we use SLF4J in our applications, we sometimes see a warning message about multiple bindings in the classpath printed to the console....
Read more >
Download - tinylog 2
slf4j -tinylog is a binding for SLF4J, which supports all versions from 1.6 up to 2.0. This means that slf4j-api must also exist...
Read more >
Class path contains multiple SLF4J bindings - Stack Overflow
This will display the dependency tree for the project and dependencies who have pulled in another binding with the slf4j-log4j12 JAR.
Read more >
[Solved] SLF4J: Class Path Contains Multiple SLF4J Bindings.
If you are looking for quick solution for this issue, you need to find out how log4j is present on your path. run...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found