Easysoft JDBC-ODBC BridgeHow do I get a trace (enable/disable tracing) in the Java client? |
|
The standard Driver Manager methods:
DriverManager.setLogStream(java.io.PrintStream(java.io.PrintStream out))
or
DriverManager(java.io.PrintWriter out)
can be used in your code to enable/disable tracing to specified output.
It is also possible to turn on tracing to the standard output (Java console) by adding the
:trace=on
attribute to the Easysoft JDBC URL.
For multi-threaded applications/applets you should also set the
:multi=on
attribute, so that each line of the generated trace is prefixed with an indication of the thread that produced that line. e.g.
jdbc:easysoft://host/dsn:trace=on:multi=on