Configuring Logging Options

To help troubleshoot issues, you can enable logging in the connector.

Important:
  • Only enable logging or tracing long enough to capture an issue. Logging decreases performance and can consume a large quantity of disk space.
  • Typically, connector-wide configuration settings (such as logging) are applied to all connections that use the connector. However, if the connector uses the RDFODBC dependency, then connector-wide configuration settings are applied to all connectors that also use the RDFODBC dependency.

To enable logging:

  1. From the /lib subfolder in the connector installation directory, do one of the following:
    • If the connector is using the RDFODBC dependency, then open the rdf.rdfodbc.ini configuration file in a text editor.
    • Otherwise, open the simba.googleadsodbc.ini configuration file in a text editor.
  2. To specify the level of information to include in log files, set the LogLevel property to one of the following numbers:
  3. LogLevel Value Description

    0

    Disables all logging.

    1

    Logs severe error events that lead the connector to abort.

    2

    Logs error events that might allow the connector to continue running.

    3

    Logs events that might result in an error if action is not taken.

    4

    Logs general information that describes the progress of the connector.

    5

    Logs detailed information that is useful for debugging the connector.

    6

    Logs all connector activity.

  4. Set the LogPath property to the full path to the folder where you want to save log files.
  5. Set the LogFileCount property to the maximum number of log files to keep.
  6. Note:

    After the maximum number of log files is reached, each time an additional file is created, the connector deletes the oldest log file.

  7. Set the LogFileSize property to the maximum size of each log file in bytes.
  8. Note:

    After the maximum file size is reached, the connector creates a new file and continues logging.

  9. Save the configuration file.
  10. Restart your ODBC application to make sure that the new settings take effect.

The Simba Google Ads ODBC Connector produces a log file named SimbaGoogleAdsODBCDriver.log at the location you specify using the LogPath setting.

To disable logging:

  1. From the /lib subfolder in the connector installation directory, do one of the following:
    • If the connector is using the RDFODBC dependency, then open the rdf.rdfodbc.ini configuration file in a text editor.
    • Otherwise, open the simba.googleadsodbc.ini configuration file in a text editor.
  2. Set the LogLevel property to 0.
  3. Save the configuration file.
  4. Restart your ODBC application to make sure that the new settings take effect.