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

Log > Migrate java logging to SLF4J #288

Closed
hamadodene opened this issue May 18, 2021 · 2 comments · Fixed by #513
Closed

Log > Migrate java logging to SLF4J #288

hamadodene opened this issue May 18, 2021 · 2 comments · Fixed by #513
Assignees

Comments

@hamadodene
Copy link
Contributor

No description provided.

@NiccoMlt NiccoMlt self-assigned this Nov 7, 2024
@NiccoMlt
Copy link
Contributor

NiccoMlt commented Nov 7, 2024

#500 fixed many dependency mismatches

Now, we depend from many tools that use SLF4J, but none that require JUL; we are still using JUL as our default backend for SLF4J (with slf4j-jdk14 module).

After we migrate all logs from java.util.logging APIs to SLF4J, we can drop slf4j-jdk14 and start using another backend like Logback.

Then, it would be cool to add a PMD rule to prohibit the usage of JUL (that we cannot remove from classpath because it is part of the Java standard library...)

@NiccoMlt
Copy link
Contributor

NiccoMlt commented Nov 7, 2024

Also, it would be useful to take a look at instrumentability by OpenTelemetry when choosing the backend: https://opentelemetry.io/docs/languages/java/instrumentation/#log-instrumentation

@NiccoMlt NiccoMlt linked a pull request Nov 8, 2024 that will close this issue
@NiccoMlt NiccoMlt changed the title Log > Migrate java logging to SL4J Log > Migrate java logging to SLF4J Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants