Enabling Driver Logging on Windows

ODBC Driver for Teradata® User Guide

brand
Teradata Tools and Utilities
prodname
ODBC Driver for Teradata
vrm_release
16.20
category
User Guide
featnum
B035-2526-108K
  1. Open ODBC Data Source Administrator where you created the DSN to access logging options.
  2. Select the DSN and click Configure > Logging Options.
  3. From the Log Level drop down list, select the logging level corresponding to the amount of information you want included in the files.
    Logging Level Description
    OFF (Default) Disables all logging.
    FATAL Logs severe error events that lead the driver to abort.
    ERROR Logs error events that might allow the driver to continue running.
    WARNING Logs events that might result in an error if no action is taken.
    INFO Logs general information describing the progress of the driver.
    DEBUG Logs detailed information that is useful for debugging the driver.
    TRACE Logs all driver activity.
  4. In the Log Path field, specify the full path to the target folder where you want to save log files.
  5. In the Max Number Files field, type the maximum number of log files to keep. After the maximum number of log files is reached, each time an additional file is created the driver deletes the oldest log file.
  6. In the Max File Size field, type the maximum size of each log file in megabytes (MB). After maximum file size is reached, the driver creates a new file and continues logging.
  7. Restart your ODBC application to verify the settings. The new Teradata ODBC Driver produces two log files at the location you specify using the LogPath key, where [DriverName] is the name of the driver:
    • A [DriverName]_driver.log file that logs driver activity not specific to a connection.
    • A [DriverName]_connection_[Number].log for each connection made to the database, where [Number] is a number that identifies each log file. This file logs driver activity specific to the connection.