-
Notifications
You must be signed in to change notification settings - Fork 74
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
Use slf4j-api instead of depending on a concrete logging provider #243
Comments
I am happy to work on this if you agree with the approach. |
This seems perfectly reasonable to me. I'd be happy to review this change if you were to make it. |
This was referenced Apr 17, 2024
vbarua
pushed a commit
that referenced
this issue
May 1, 2024
Depend on slf4j-api instead of the slf4j-jdk14 logging framework. This allows consumers to select their preferred logging framework at deployment time by adding an appropriate SLF4J provider to their runtime classpath. If no SLF4J provider is available at runtime, no logging output will be produced. The code still functions as expected. The isthmus CLI command continues to log using java.util.logging by including the slf4j-jdk14 provider in its runtime classpath. Signed-off-by: Mark S. Lewis <Mark.S.Lewis@outlook.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
SLF4J is designed as a facade (or abstraction) for various logging concrete logging implementations (see SLF4J documentation for details). The SLF4J has this guidance for libraries:
Rather than depending on slf4j-api and allowing consumers to link to a concrete logging provider of their choice at deployment time, this project has an implementation dependency on slf4j-jdk14. I propose depending only on slf4j-api and documenting that consumers should add a dependency on their concrete logging provider of choice.
The text was updated successfully, but these errors were encountered: