commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Graham <>
Subject Re: [DbUtils] logging sql statement
Date Fri, 23 Apr 2004 21:19:07 GMT
Logging is intentionally left out of DbUtils so that it remains a simple
one jar distro.  It would be easy to subclass QueryRunner and override the
methods you were interested in, logging, and then delegating to the super
implementation to do the real work.  

DbUtils does wrap all SQLExceptions thrown from the JDBC driver with its
own SQLException containing the SQL and replacement parameters that were
executing at the time of failure so logging may not be as important.


--- "Mishkin, Ernest" <> wrote:
> Hello,
> I believe it's a nice feature when a JDBC-wrapping framework like
> DbUtils can automatically log sql statements before execution (with
> configurable priority of course).
> I implemented that as part of my "own" little wrapper class and founded
> that to be indispensable when during debugging sessions...
> Is there any interest in adding this feature to DbUtils? If there is,
> I'd be willing to work on that.
> Regards,
> Ernest Mishkin
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message