DataDirect Spy is functionality that is built into the drivers. It is used to log detailed information about calls your driver makes and provide information you can use for troubleshooting. DataDirect Spy provides the following advantages:
Logging is JDBC 4.0-compliant.
Logging is consistent, regardless of which DataDirect for JDBC driver is used.
All parameters and function results for JDBC calls can be logged.
Logging works with all DataDirect for JDBC drivers.
Logging can be enabled without changing the application.
When you enable DataDirect Spy for a connection, you can customize logging by setting one or multiple options for DataDirect Spy. For example, you may want to direct logging to a local file on your machine.
Once logging is enabled for a connection, you can turn it on and off at runtime using the setEnableLogging method in the com.ddtek.jdbc.extensions.ExtLogControl interface. See "Troubleshooting your application" for information about using a DataDirect Spy log for troubleshooting.