ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen Friedrich <stephen.friedr...@fortis-it.eu>
Subject AW: logging sql statements
Date Tue, 15 Dec 2009 01:29:14 GMT
I haven't found any documentation either, but had to refer to the source code to find usages
of Loggers.
This log category can be valuable, too:
    <category name="com.ibatis" additivity="false">
        <priority value="debug"/>
    </category>

-----Urspr√ľngliche Nachricht-----
Von: Rick.Wellman [mailto:Rick.Wellman@kiewit.com] 
Gesendet: Dienstag, 15. Dezember 2009 00:56
An: user-java@ibatis.apache.org
Betreff: RE: logging sql statements

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: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...

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

Mime
View raw message