ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick.Wellman <Rick.Well...@kiewit.com>
Subject RE: logging sql statements
Date Mon, 14 Dec 2009 23:55:42 GMT
iBatis relies on logging of the underlying JDBC statements which is documented (somewhere).
We use the following settings in our log4j.xml file, adjust to your liking:
    <!-- iBATIS SQL statements -->   
    <category name="java.sql">
      <priority value="info" />

    <category name="java.sql.ResultSet">
      <priority value="info" />

-----Original Message-----
From: Trenton D. Adams [mailto:trenta@athabascau.ca] 
Sent: Monday, December 14, 2009 5:51 PM
To: user-java
Subject: logging sql statements

Hi Guys,

I've searched the net like crazy, and there doesn't seem to be anything reasonable describing
how to have iBatis print out the parsed SQL that is being run, during an error.

Is this possible?

Currently I tried the following, to no avail...



Trenton D. Adams
Systems Analyst/Web Software Engineer
Navy Penguins at your service!
Athabasca University
(780) 675-6195

    This communication is intended for the use of the recipient to whom it
    is addressed, and may contain confidential, personal, and or privileged
    information. Please contact us immediately if you are not the intended
    recipient of this communication, and do not copy, distribute, or take
    action relying on it. Any communications received in error, or
    subsequent reply, should be deleted or destroyed.

To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
For additional commands, e-mail: user-java-help@ibatis.apache.org

View raw message