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

Use logger-neutral API #66

Open
desruisseaux opened this issue Feb 4, 2023 · 0 comments
Open

Use logger-neutral API #66

desruisseaux opened this issue Feb 4, 2023 · 0 comments
Milestone

Comments

@desruisseaux
Copy link
Collaborator

desruisseaux commented Feb 4, 2023

PROJ-JNI uses java.util.logging for reporting warnings. But other logging frameworks such as SLF4J are popular. Since Java 9, a more framework-neutral API is available with System.Logger. We should replace our usage of java.util.logging by System.Logger.

A difficulty is that current PROJ-JNI is still targeting Java 8. We could use multi-versions JAR file for taking advantage of System.Logger automatically when the execution environment is Java 9 or later. However we are invoking java.util.logging from native code as well. The NativeResource.logger() method is invoked from JNI code. Trying to support multi-versions in JNI code would be too difficult and risky. Consequently, this issue is reminder for a task to do after #65 is resolved.

@desruisseaux desruisseaux added this to the 2.1 milestone Feb 18, 2023
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

No branches or pull requests

1 participant