While debugging my application which uses ha-jdbc library I realized the need of adding more loggers to help troubleshooting.
The current loggers I guess have a logger statement for displaying the proxied method invocation for datasource, connection, statement etc.
It would be nice to have loggers displaying the database name on which the query is executed, the query, and the invocation strategy (invoke any, invoke all, invoke on existing etc).
Thoughts?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
While debugging my application which uses ha-jdbc library I realized the need of adding more loggers to help troubleshooting.
The current loggers I guess have a logger statement for displaying the proxied method invocation for datasource, connection, statement etc.
It would be nice to have loggers displaying the database name on which the query is executed, the query, and the invocation strategy (invoke any, invoke all, invoke on existing etc).
Thoughts?
I added trace logging at the invoker-level some time ago in master:
https://github.com/ha-jdbc/ha-jdbc/blob/master/src/main/java/net/sf/hajdbc/invocation/SimpleInvoker.java
I agree - it would be a good idea to also log the invocation strategy used. I'll add that.