P6Spy is a framework that enables database data to be seamlessly intercepted and logged with no code changes to existing application. The P6Spy distribution includes P6Log, an application which logs all JDBC transactions for any Java application.
Documentation: Installation Configuration Javadoc
For full documentation refer to format of your choice: html, pdf or epub.
Need help? User's mailing list: Post - Archive Developer's mailing list: Post - Archive Issue tracking: View/Create issues
Related github repos: p6spy-it - for integration testing with misc application servers p6spy-perf - for performance testing (using jmeter)