where spy_attribute is any valid DataDirect Spy attribute. See
DataDirect Spy™ Attributes for a list of supported attributes.
("jdbc:datadirect:sqlserver://Server1:1433;User=TEST;Password=secret;
SpyAttributes=(log=(filePrefix)C:\\temp\\spy_;linelimit=80;logTName=yes;
timestamp=yes)");
Using this example, DataDirect Spy loads the SQL Server driver and logs all JDBC activity to the spy_
x.log file located in the
C:\temp directory (
log=(filePrefix)C:\\temp\\spy_), where
x is an integer that increments by 1 for each connection on which the prefix is specified. The spy_
x.log file logs a maximum of 80 characters on each line (
linelimit=80) and includes the name of the current thread (
logTName=yes) and a timestamp on each line in the log (
timestamp=yes).
("jdbc:datadirect:db2://Server1:50000;User=TEST;Password=secret;
SpyAttributes=(log=(filePrefix)/tmp/spy_;logTName=yes;timestamp=yes)");
Using this example, DataDirect Spy loads the DB2 driver and logs all JDBC activity to the spy_
x.log file located in the
/tmp directory (
log=(filePrefix)/tmp/spy_), where
x is an integer that increments by 1 for each connection on which the prefix is specified. The spy_
x.log file includes the name of the current thread (
logTName=yes) and a timestamp on each line in the log (
timestamp=yes).