I know that I can enable sql logging (using show_sql=true), but is there a way to get better instrumentation. For example, include the following in the log:
- log the sql and the hsql (with the named parameters)
- log the parameters bound to the statement
- log the time taken to execute the sql
- control the format of the log
- determine if the sql should be logged
It would be nice to have an interceptor that I could register that can manage the logging of all sql (loader, persister, native, named-query, generator, etc)
I have looked at the Batcher class, but I do not think it is in the right spot.
Thanks
Gavin
|