How do I use slf4j 2 and slf4j 1.7 at the same time? #319
Unanswered
rupert-madden-abbott
asked this question in
Q&A
Replies: 2 comments 1 reply
-
Have you read https://www.slf4j.org/codes.html#ignoredBindings mentioned in the warning message? Does it shed any light onto the matter? |
Beta Was this translation helpful? Give feedback.
1 reply
-
The warning message mentioning "provider" means that SLF4J 2.0.x is being loaded, and not SLF4J 1.7.x. I don't know your set up but in principle placing a compatible logging implementation such as logback 1.3 or later will solve the problem. What is the logging implementation you are using currently? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've just updated a library which has in turn updated to slf4j 2. Other libraries I am using are still depending on slf4j 1.7.
The result of this is my logging has broken and the following message is output at startup:
An added complication for me is that the library I am depending on,
wiremock-jr8-standalone
has shaded the slf4j 2 API so there was no hint in my dependency tree that slf4j 2 was getting pulled in.Anyway, is the above behaviour anticipated and, if so, what is the intended upgrade path? I am supposed to keep everything on slf4j 1.7 until everything can move to 2.0? Or am I supposed to remove all 1.7 bindings and replace them with 2.0 providers if at least one dependency is on 2.0? Is it the shading that has caused the problem specifically somehow?
Beta Was this translation helpful? Give feedback.
All reactions