You may find DBIx::Log4perl useful. It can log just the SQL and and bound parameters at execute time.
In reply to Re: Dumper with DBI/DBD? by mje in thread Dumper with DBI/DBD? by kingram