Hi,
Does anyone know if there is a hook/extension point in Hibernate that would allow me to record all executed SQL with parameters in a convenient way? I know of the usual show sql options. I followed instructions in this blog post
http://www.javalobby.org/java/forums/t44119.html but it logs parameter values in separate log entries. What I need is everything in the same log entry and the parameter values replacing the '?'s in the PreparedStatement.
I found p6spy library but it acts at a very low level intercepting the JDBC connection. A solution at hibernate level would be preferable.
Any advice appreciated,
-Guillaume