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
Hi,

 

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

 

Niels

 

________________________________

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.rootLogger=DEBUG,stdout

log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
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:
[java.lang.Long]
09:06:18:238 DEBUG java.sql.ResultSet - {rset-100012} ResultSet
09:06:18:238 DEBUG java.sql.ResultSet - {rset-100012} Header:
[UNIQUE_PRODUCT_ID, *snip* ]
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


Mime
View raw message