Return-Path: Delivered-To: apmail-ibatis-dev-archive@www.apache.org Received: (qmail 44193 invoked from network); 21 Mar 2008 10:05:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Mar 2008 10:05:21 -0000 Received: (qmail 90605 invoked by uid 500); 21 Mar 2008 10:05:18 -0000 Delivered-To: apmail-ibatis-dev-archive@ibatis.apache.org Received: (qmail 90587 invoked by uid 500); 21 Mar 2008 10:05:18 -0000 Mailing-List: contact dev-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ibatis.apache.org Delivered-To: mailing list dev@ibatis.apache.org Received: (qmail 90576 invoked by uid 99); 21 Mar 2008 10:05:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Mar 2008 03:05:18 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Mar 2008 10:04:47 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6A162234C0A7 for ; Fri, 21 Mar 2008 03:03:25 -0700 (PDT) Message-ID: <99011651.1206093805420.JavaMail.jira@brutus> Date: Fri, 21 Mar 2008 03:03:25 -0700 (PDT) From: "Gilles Bayon (JIRA)" To: dev@ibatis.apache.org Subject: [jira] Closed: (IBATISNET-35) Improve logging of text sent to database and recieved from database to match Java version of IBatis MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/IBATISNET-35?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gilles Bayon closed IBATISNET-35. --------------------------------- Resolution: Fixed > Improve logging of text sent to database and recieved from database to match Java version of IBatis > --------------------------------------------------------------------------------------------------- > > Key: IBATISNET-35 > URL: https://issues.apache.org/jira/browse/IBATISNET-35 > Project: iBatis for .NET > Issue Type: Improvement > Affects Versions: DataAccess 1.5, DataMapper 1.1 > Environment: Data Mapper - [assembly: AssemblyVersion("1.1.458")] > Data Access - [assembly: AssemblyVersion("1.5.458")] > Reporter: Ron Grabowski > Assignee: Gilles Bayon > Attachments: SystemDataProxy.zip, TypeHandlerFactory.cs, TypeHandlerLogWrapper.cs > > > Here are some example logs from the Java version of IBatis. The examples show INSERT, SELECT, UPDATE, and DELETE statements: > DEBUG - Checked out connection 30332961 from pool. > DEBUG - {conn-100003} Connection > DEBUG - {pstm-100004} PreparedStatement: INSERT INFO UserAudit (UserId, AuditEvent, DateOccurred) values (?,?,?) > DEBUG - {pstm-100004} Parameters: [4, audit.login.success, 2004-08-25 09:15:22.809] > DEBUG - {pstm-100004} Types: [java.lang.Integer, java.lang.String, java.sql.Timestamp] > DEBUG - {pstm-100005} PreparedStatement: SELECT LAST_INSERT_ID() AS id > DEBUG - {pstm-100005} Parameters: [] > DEBUG - {pstm-100005} Types: [] > DEBUG - {rset-100006} ResultSet > DEBUG - {rset-100006} Header: [id] > DEBUG - {rset-100006} Result: [422] > DEBUG - Returned connection 30332961 to pool. > DEBUG - Checked out connection 30332961 from pool. > DEBUG - {conn-100007} Connection > DEBUG - {pstm-100008} PreparedStatement: SELECT UserId, Login, Password FROM User WHERE Login = ? and Password = ? > DEBUG - {pstm-100008} Parameters: [abc123, def456] > DEBUG - {pstm-100008} Types: [java.lang.String, java.lang.String] > DEBUG - {rset-100009} ResultSet > DEBUG - {rset-100009} Header: [UserId, Login, Password] > DEBUG - {rset-100009} Result: [4, abc1234, def456] > DEBUG - Returned connection 30332961 to pool. > DEBUG - Checked out connection 4548856 from pool. > DEBUG - {conn-100045} Connection > DEBUG - {pstm-100046} PreparedStatement: SELECT UserId, Login FROM User > DEBUG - {pstm-100046} Parameters: [] > DEBUG - {pstm-100046} Types: [] > DEBUG - {rset-100047} ResultSet > DEBUG - {rset-100047} Header: [UserId, Login] > DEBUG - {rset-100047} Result: [1, abc123] > DEBUG - {rset-100047} Result: [4, def456] > DEBUG - {rset-100047} Result: [6, aaaaa] > DEBUG - Returned connection 4548856 to pool. > DEBUG - Checked out connection 7125805 from pool. > DEBUG - {conn-100043} Connection > DEBUG - {pstm-100044} PreparedStatement: UPDATE User SET Login = ? WHERE UserId = ? > DEBUG - {pstm-100044} Parameters: [aaaaa, 4] > DEBUG - {pstm-100044} Types: [java.lang.String, java.lang.Integer] > DEBUG - Returned connection 7125805 to pool. > DEBUG - Checked out connection 27062282 from pool. > DEBUG - {conn-100043} Connection > DEBUG - {pstm-100044} PreparedStatement: DELETE FROM User WHERE UserId = ? > DEBUG - {pstm-100044} Parameters: [4] > DEBUG - {pstm-100044} Types: [java.lang.Integer] > DEBUG - Returned connection 27062282 to pool. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.