db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Fischer <fisc...@seitenbau.net>
Subject Re: Logging of sql statements of a single peer class
Date Tue, 11 Dec 2007 09:27:28 GMT
> is there any possibility to log only the sql statements triggered by a
single
> Peer class? I know that there are logging functionalities concerning
BasePeer.
> But with these, all sql expressions are logged, not only the ones
triggered by
> the single Peer class.

I know this is not the most elegant way, but you can add logging
functionalities to the peer in question and then configure log4j (or
whatever logging framework you are using) to discard the logging of base
peer and only use the loggin in your peer class.

     Thomas


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message