in reply to How to log SQL query execution in DBI

Look at the docs for DBI for info on the trace() method; that may be close to the info you're trying to get.