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>

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

-----Original Message-----
From: Trenton D. Adams [mailto:tre...@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...

LogFactory.selectLog4JLogging();

log4j.logger.com.ibatis=DEBUG

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

__ 
    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-unsubscr...@ibatis.apache.org
For additional commands, e-mail: user-java-h...@ibatis.apache.org

Reply via email to