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:[EMAIL PROTECTED]
Sent: woensdag 31 augustus 2005
18:16
To: [email protected]
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
|
- RE: iBatis logging Niels Beekman
-