Enabling Teradata PT API Infrastructure-Specific Tracing
The environment variable TPTAPIDEBUG enables the TPT API debug mode and writes the log to the file named by the environment variable TPTAPILOG.
The environment variable TPTAPILOG specifies the file to which TPT API debug messages are written.
Setting TPTAPIDEBUG
To enable the TPT API debug mode, the environment variable TPTAPIDEBUG should be set to an integer value greater than zero, for example, 1 or 5 or 100. Only positive integer values are valid for the TPTAPIDEBUG environment variable.
Setting TPTAPILOG
Example
If:
the log/debug information is written to the file "APILOG.txt".
Example
If:
the log/debug information is written to the console ('stdout').
Example
If
the log/debug information is written to the console ('stdout')
Example
If:
the log/debug information is written to the file named "1".
Example
If:
the TPT API debug mode is not enabled (because TPTAPIDEBUG has not been set to a value) and log/debug information is not written to the file named. The TPT API program continues without the debug mode being enabled.
Example
If
the TPT API debug mode is not enabled (because TPTAPIDEBUG is set to less than 1) and log/debug information is not written to the file named. The TPT API program continues without the debug mode being enabled.