-
Notifications
You must be signed in to change notification settings - Fork 623
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
Remove use of standard streams - introduce logging framework? #802
Comments
You have basically two options: SLF4J 1.7.x or JUL (the API, not the implementation). Have you checked with other popular JDBC drivers? |
I think i have read somewhere that JUL before 1.9 was a no-no, but can't remember the details. Would need to investigate further. |
|
Actually it's not about JUL, but JDK9 introduced |
I checked on the web and could not find any good source of information about this. It's not used in pgjdbc nor H2 either. If anyone has some information on that, i am quite interested. |
🎉 This issue has been resolved in |
The existing code relies of
System.err
ande.printStackTrace()
to output errors:SQLiteJDBCLoader
OSInfo
, but this can run as a command line so it should not be a problemJDBC3DatabaseMetaData
In some places we also use
DriverManager.println
which seems to be the correct way to print JDBC connection related logs.I would be enclined to remove the use of standard streams, and use a logging framework instead. Given we support Java 8, SLF4J is probably the best bet, though i noticed they finally released their 2.0 version, which kinda breaks existing apps.
Comments are welcome.
The text was updated successfully, but these errors were encountered: