log4jdbc is a little Java JDBC spy driver that I first open sourced about a year ago.
It can snoop on other JDBC drivers and log all the goodies going on with your database under the hood– SQL, timing info and more!
I just released the 1.1 final release today. It has some significant improvements over the 1.0 release which came out last year around this time. Most notably, it uses the SLF4J logging system (instead of log4j) so it’s much more portable as to which logging system you can use.
Hope you enjoy using it and please send me feedback if you like it (or hate it).