> ## Documentation Index
> Fetch the complete documentation index at: https://insightsoftware-preview.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Configuring Logging Options

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

<Warning>
  **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.
</Warning>

### Configuring Connector-wide Logging Options

The settings for logging apply to every connection that uses the Simba Athena ODBC Driver, so make sure to disable the feature after you are done using it. To configure logging for the current connection, see [Configuring Logging for the Current Connection](/simba/athena/athena-odbc-data-connector-for-windows-linux-and-macos/windows_connector/configuring_logging_options/configuring_logging_for_the_current_connection).

To enable connector-wide 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:<table><colgroup><col /><col /></colgroup><thead><tr><th scope="col">Logging Level</th><th scope="col">Description</th></tr></thead><tbody><tr><td><p>OFF</p></td><td><p>Disables all logging.</p></td></tr><tr><td><p>FATAL</p></td><td><p>Logs severe error events that lead the connector to abort.</p></td></tr><tr><td><p>ERROR</p></td><td><p>Logs error events that might allow the connector to continue running.</p></td></tr><tr><td><p>WARNING</p></td><td><p>Logs events that might result in an error if action is not taken.</p></td></tr><tr><td><p>INFO</p></td><td><p>Logs general information that describes the progress of the connector.</p></td></tr><tr><td><p>DEBUG</p></td><td><p>Logs detailed information that is useful for debugging the connector.</p></td></tr><tr><td><p>TRACE</p></td><td><p>Logs all connector activity.</p></td></tr></tbody></table>

<Note>
  **Note:** If the Use AWS Logger check box is selected, the connector also logs information from AWS API calls.
</Note>

3. 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.
4. In the **Max Number Files** field, type the maximum number of log files to keep.

<Note>
  **Note:** After the maximum number of log files is reached, each time an additional file is created, the connector deletes the oldest log file.
</Note>

5. In the **Max File Size** field, type the maximum size of each log file in megabytes (MB).

<Note>
  **Note:** After the maximum file size is reached, the connector creates a new file and continues logging.
</Note>

6. To log information about AWS API calls, select the **Use Aws Logger** check box.
7. Click **OK**.
8. Restart your ODBC application to make sure that the new settings take effect.

The Simba Athena ODBC Driver produces the following log files at the location you specify in the Log Path field:

* A `simbaathenaodbcdriver.log` file that logs connector activity that is not specific to a connection.
* A `simbaathenaodbcdriver_connection_[Number].log` file for each connection made to the database, where *\[Number]* is a number that identifies each log file. This file logs connector activity that is specific to the connection.

If you enable the `UseLogPrefix` connection property, the connector prefixes the log file name with the user name associated with the connection and the process ID of the application through which the connection is made. For more information, see [UseLogPrefix](/simba/athena/athena-odbc-data-connector-for-windows-linux-and-macos/connector_configuration_options/configuration_options_having_only_key_names/uselogprefix).

To disable connector 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.
