JDBC Type 4 Driver Programmer's Reference for SQL/MX Release 3.1 (H06.23+, J06.12+)
serverDataSource=MyDataSource
For more information about the default server data source, see the SQL/MX Connectivity Service Manual.
T4LogFile Property
The T4LogFile property sets the name of the logging file for the Type 4 driver.
Set this property on a
DataSource object, ConnectionPoolDataSource object, or DriverManager object. For information about how to set
properties, see
How to Specify JDBC Type 4 Properties.
Data type: String
Default file name is defined by the following pattern:
%h/t4sqlmx%u.log
where
/ represents the local pathname separator.
%h represents the value of the user.home system property.
%u represents a unique number to resolve conflicts.
Any valid file name for your system is allowed.
If you explicitly specify a log file, that file is overwritten each time a
FileHandler is established using that file name.
To retain previously created log files, use the standard
java.util.logging file syntax to append a unique number onto each log file. For
example, you can have the following property in a data source:
T4LogFile = C:/temp/MyLogFile%u.log
That name causes the Type 4 driver to create a new log file using a unique name for each connection made through that data source. For
example:
C:/temp/MyLogFile43289.log
C:/temp/MyLogFile87634.log
C:/temp/MyLogFile27794.log
If you explicitly specify a log file that is not fully qualified, the Type 4 driver creates the file in the current working directory, for example, in the
directory from which the JVM was invoked.
For detailed information about
java.util.logging, see the logging summary at
http://download.oracle.com/javase/1.5.0/docs/api/java/util/logging/package-summary.html.
T4LogLevel Property
The T4LogLevel property sets the logging levels that control logging output for the Type 4 driver. The Java package java.util.logging logs
error messages and traces messages in the driver.
Set this property on a DataSource object, ConnectionPoolDataSource object, or DriverManager object. For information about how to set
properties, see
How to Specify JDBC Type 4 Properties.
Data type: String
Default:
OFF
Logging Levels
OFF
is a special level that turns off logging; the default setting.
SEVERE
indicates a serious failure; usually applies to SQL exceptions generated by the Type 4 driver.
WARNING
indicates a potential problem, which usually applies to SQL warnings generated by the Type 4 driver.
INFO
provides informational messages, typically about connection pooling, statement pooling, and resource usage. This information can help
in tuning application performance.
CONFIG
provides static configuration messages that can include property values and other Type 4 driver configuration information.
FINE
provides tracing information from the Type 4 driver methods described in the Type 4 driver API. The level of tracing is equivalent to the
level of tracing provided when calling the
setLogWriter() method of the DriverManager class or the DataSource class.
FINER










