JDBC Driver for SQL/MX Programmer's Reference
The logFile is the file name that is to contain the tracing information. The n value for the
traceFlag can be the following values:
Value for n Description
0 No tracing.
1
Traces connection and
statement pooling calls only.
2
Traces entry point of all JDBC
methods.
Tracing Using the
system.setProperty Method
Enable tracing by using the System.setProperty(key, value) to set the same value
as described above. For example:
System.setProperty("traceFile", "myLogFile.log");
System.setProperty("traceFlag", "2");
Set the system property before the program makes any JDBC API calls.
Tracing by Loading the Trace Driver
Within the Program
Enable tracing by loading the JDBC trace driver within the program by using the
Class.forName("com.tandem.jdbc.TDriver") method. This method also requires
that you set the DriverManager.setLogWriter method.