Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 92904 invoked from network); 23 Mar 2007 11:37:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Mar 2007 11:37:12 -0000 Received: (qmail 36280 invoked by uid 500); 23 Mar 2007 11:37:16 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 36269 invoked by uid 500); 23 Mar 2007 11:37:16 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 36258 invoked by uid 99); 23 Mar 2007 11:37:16 -0000 X-ASF-Spam-Status: No, hits=0.9 required=10.0 tests=FORGED_YAHOO_RCVD,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of lists@nabble.com designates 72.21.53.35 as permitted sender) Received: from [72.21.53.35] (HELO talk.nabble.com) (72.21.53.35) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Mar 2007 04:37:15 -0700 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1HUi4d-0008AS-FR for user-java@ibatis.apache.org; Fri, 23 Mar 2007 04:36:47 -0700 Message-ID: <9632994.post@talk.nabble.com> Date: Fri, 23 Mar 2007 04:36:47 -0700 (PDT) From: K1RUHA To: user-java@ibatis.apache.org Subject: RE: Logging SQL statements In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: kiryl_kazakevich@yahoo.com References: <9632495.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org But this approach will also generate log messages for SELECT statements. I was thinking about getting sql statements in DAO and then log them depending on configuration parameter. Goga, Murtaza wrote: > > If you are using Log4J, you can add an appender and route the logged sql > activity from iBatis into a separate file. The category I believe is > "java.sql." > > > > ________________________________ > > From: K1RUHA [mailto:kiryl_kazakevich@yahoo.com] > Sent: Friday, March 23, 2007 6:59 AM > To: user-java@ibatis.apache.org > Subject: Logging SQL statements > > > > Hello. I'd like to use iBATIS in our project, but I have one requierent, > that I don't know if it supports. I need to log SQL statements that > modify database (UPDATE and DELETE) into separate file. So I need some > approach to get these statements in my Java code. Would you mind tell me > if iBATIS can do this? Thanx, Kiryl > > ________________________________ > > View this message in context: Logging SQL statements > > Sent from the iBATIS - User - Java mailing list archive > at Nabble.com. > > > -- View this message in context: http://www.nabble.com/Logging-SQL-statements-tf3453072.html#a9632994 Sent from the iBATIS - User - Java mailing list archive at Nabble.com.