JDBC commands trace question

From: Andrei Adamchik (aadamchi..ogical-process.com)
Date: Sun Apr 15 2001 - 19:18:40 EDT


Guys,

does anyone know about JDBC logging facilities. All I see is
DriverManager.setLogWriter() that allows to turn on driver debugging. All
this does (at least with the Sybase JDBC driver I am using) is printing a
message when a new connection is opened. I am looking for something similar
to EOF EOAdaptorDebugging feature (and beyond). Something that would print
all SQL queries executed through a particular connection to a preset
PrintWriter.

Is there something standard in JDBC that would allow to do that?

... It looks like we will have to implement this ourselves at the DataNode
level (if you had a chance to look at the existing code, this will affect
classes in org.objectstyle.cayenne.conn package)...

I played with log4j package from apache. It looks *very* promising for the
tasks like that. Like one guy in WebObjects mailing list said , log4j is
"very addictive", in a sense that once you start using it, you will put it
everywhere.

Any other suggestions?

Andrei



This archive was generated by hypermail 2b30 : Sat Aug 04 2001 - 16:21:24 EDT