ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clinton Begin <clinton.be...@gmail.com>
Subject Re: logging sql statements
Date Tue, 15 Dec 2009 02:02:51 GMT
Perhaps no documentation on that subject, but Page 2 reads:

*-----------------------------------------------*
*Help make this documentation better…

If you find this documentation lacking in any way, or missing documentation
for a feature, then the best thing to do is learn about it and then write
the documentation yourself!

We accept public documentation contributions through our wiki at:

http://opensource.atlassian.com/confluence/oss/display/IBATIS/Contribute+Documentation

You’re the best author of this documentation, people like you have to read
it!
*-----------------------------------------------

Of course, these comments are welcome on this list too, but definitely post
it to the wiki as well.

Cheers,  :-)
Clinton

On Mon, Dec 14, 2009 at 6:29 PM, Stephen Friedrich <
stephen.friedrich@fortis-it.eu> wrote:
>
> 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