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