Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Siedlerchr opened this issue Dec 4, 2021 · 11 comments
Labels

Comments

@Siedlerchr
Copy link

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

@Siedlerchr Siedlerchr added the bug label Dec 4, 2021
@Siedlerchr Siedlerchr mentioned this issue Dec 4, 2021
5 tasks
@pmwmedia
Copy link
Member

pmwmedia commented Dec 4, 2021

Should be fixed by commit 42c4b8e (see #222)

@pmwmedia
Copy link
Member

pmwmedia commented Dec 4, 2021

Workaround: use SLF4J 2 Alpha2 until the release of tinylog 2.4.0 (planned for next week)

@Siedlerchr
Copy link
Author

Thanks! I will then wait for the next release!

@pmwmedia
Copy link
Member

pmwmedia commented Dec 6, 2021

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

@pmwmedia pmwmedia closed this as completed Dec 6, 2021
@Siedlerchr
Copy link
Author

Siedlerchr commented Dec 10, 2021

Just tested with 2.4.0 Release, and I still get the same error in JabRef. I also tried adding tinylog-impl to the dependenices, but the same issues
JabRef/jabref#8226

Module info:

    requires org.slf4j;

    requires org.tinylog.api;
    requires org.tinylog.api.slf4j;

./gradlew run

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/25092e9cb49f538556a767616b62733406e98aea/slf4j-tinylog-2.4.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#ignoredBindings for an explanation.

@pmwmedia
Copy link
Member

This is really odd. Could you provide a minimal example project that I can use for reproducing your issue?

@pmwmedia pmwmedia reopened this Dec 10, 2021
@Siedlerchr
Copy link
Author

I will try to come up with something.

@pmwmedia
Copy link
Member

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

@Siedlerchr
Copy link
Author

Thanks a lot!

@Siedlerchr
Copy link
Author

2.4.1 is now working!

@github-actions
Copy link

github-actions bot commented Oct 9, 2022

This closed issue has been locked automatically.
However, please feel free to file a new issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

2 participants