Return-Path: Delivered-To: apmail-db-torque-dev-archive@www.apache.org Received: (qmail 74662 invoked from network); 11 Dec 2007 09:27:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Dec 2007 09:27:58 -0000 Received: (qmail 4439 invoked by uid 500); 11 Dec 2007 09:27:47 -0000 Delivered-To: apmail-db-torque-dev-archive@db.apache.org Received: (qmail 4424 invoked by uid 500); 11 Dec 2007 09:27:47 -0000 Mailing-List: contact torque-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Apache Torque Developers List" Reply-To: "Apache Torque Developers List" Delivered-To: mailing list torque-dev@db.apache.org Received: (qmail 4413 invoked by uid 99); 11 Dec 2007 09:27:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Dec 2007 01:27:47 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [217.24.207.26] (HELO mail.seitenbau.net) (217.24.207.26) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Dec 2007 09:27:50 +0000 Received: from [192.168.15.18] (helo=www.seitenbau.net) by router.seitenbau.net with esmtp (Exim 4.43) id 1J21Oj-0007BE-R1 for torque-dev@db.apache.org; Tue, 11 Dec 2007 10:27:30 +0100 In-Reply-To: <0765101BA5724F4DAC1607B4CF4BC1719B945A@scuderia09.vps.local> Subject: Re: Logging of sql statements of a single peer class To: "Apache Torque Developers List" X-Mailer: Lotus Notes Release 7.0.1 January 17, 2006 Message-ID: From: Thomas Fischer Date: Tue, 11 Dec 2007 10:27:28 +0100 X-MIMETrack: Serialize by Router on www/seitenbau(Release 7.0.1|January 17, 2006) at 11.12.2007 10:27:28 AM MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-Spam-Score: -1.4 (-) X-Spam-Report: -1.4 ALL_TRUSTED Passed through trusted hosts only via SMTP X-Virus-Checked: Checked by ClamAV on apache.org > 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