How to log calls to a JDBC driver?
Posted on 2007-08-03
I apologize if this is a noob question, but I am just getting familiar with JDBC after having a lot of experience writing applications against ODBC.
When using ODBC, there is a trace mechanism that will log all calls made to the ODBC driver and the results returned from the database - this is very handy when trying to debug application problems.
I haven't found a similar way to log calls made to a JDBC driver - My brief internet search pointed me at a third party JDBC driver that would basically perform a pass through, logging all calls. While this would probably work, it seems strange that this functionality wouldn't be built into JDBC by default - is there a way to do this without having to install a third party JDBC driver?