ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niels Beekman" <n.beek...@wis.nl>
Subject RE: iBatis logging
Date Wed, 31 Aug 2005 17:50:58 GMT


The java.sql.*-outputs are from iBATIS too, java.sql does not do any
debugging on it's own... What logging did you expect?





From: Paul Glezen [mailto:pglezen@us.ibm.com] 
Sent: woensdag 31 augustus 2005 18:16
To: user-java@ibatis.apache.org
Subject: iBatis logging


Hi Folks,

I'm having a some trouble with iBatis logging.  My log4j.properties
looks like this for my JUnit tests:

---------------- log4j.properties --------------------

log4j.appender.stdout.layout.ConversionPattern=%d{HH:mm:ss:SSS} %5p
%c{5} - %m%n
---------------- log4j.properties

But the only iBatis class I see logging anything is the SimpleDataSource
class.  Here is a sample of what I'm seeing (with sensitive customer
info removed):

09:06:18:208 DEBUG java.sql.PreparedStatement - {pstm-100011} Types:
09:06:18:238 DEBUG java.sql.ResultSet - {rset-100012} ResultSet
09:06:18:238 DEBUG java.sql.ResultSet - {rset-100012} Header:
09:06:18:238 DEBUG java.sql.ResultSet - {rset-100012} Result:
[30025801842, *snip* ]
09:06:18:238 DEBUG com.ibatis.common.jdbc.SimpleDataSource - Returned
connection 1350937903 to pool.
09:06:18:238 DEBUG db.domain.pm.ibatis.IbatisProductMaintenance - About
to execute update Product.
09:06:18:238 DEBUG com.ibatis.common.jdbc.SimpleDataSource - Checked out
connection 1350937903 from pool.
09:06:18:238 DEBUG java.sql.Connection - {conn-100013} Connection

The IbatisProudctMaintenance is my own class.  I was hoping to see some
SqlMapClient log entries.

- Paul

View raw message