Menu
Simba Technologies
Simba Technologies

Simba MongoDB ODBC Driver with SQL Connector 2.2.3
Installation and Configuration Guide

Simba > Drivers > MongoDB > ODBC Installation Guide > Windows > Configuration > Configuring Logging Options

Configuring Logging Options

To help troubleshoot issues, you can enable logging. In addition to functionality provided in the Simba MongoDB ODBC Driver, the ODBC Data Source Administrator provides tracing functionality.

Important:

Only enable logging or tracing long enough to capture an issue. Logging or tracing decreases performance and can consume a large quantity of disk space.

To enable driver logging:

  1. To access logging options, open the ODBC Data Source Administrator where you created the DSN, then select the DSN, then click Configure, and then click Logging Options.
  2. From the Log Level drop-down list, select the logging level corresponding to the amount of information that you want to include in log files:
  3. Logging Level Description

    OFF

    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 action is not taken.

    INFO

    Logs general information that describes 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 folder where you want to save log files. You can type the path into the field, or click Browse and then browse to select the folder.
  5. In the Max Number Files field, type 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 driver deletes the oldest log file.

  7. In the Max File Size field, type the maximum size of each log file in megabytes (MB).
  8. Note:

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

  9. Click OK.
  10. Restart your ODBC application to make sure that the new settings take effect.

The Simba MongoDB ODBC Driver produces a log file named mongodbodbc_driver.log at the location that you specify in the Log Path field.

To disable driver logging:

  1. Open the ODBC Data Source Administrator where you created the DSN, then select the DSN, then click Configure, and then click Logging Options.
  2. From the Log Level drop-down list, select LOG_OFF.
  3. Click OK.
  4. Restart your ODBC application to make sure that the new settings take effect.