LogLevel key to enable logging at the desired level of detail. The following table lists the logging levels provided by the Simba Amazon Athena JDBC Connector, in order from least verbose to most verbose.
| LogLevel Value | Description |
|---|---|
| Disable all logging. |
| Log severe error events that lead the connector to abort. |
| Log error events that might allow the connector to continue running. |
| Log events that might result in an error if action is not taken. |
| Log general information that describes the progress of the connector. |
| Log detailed information that is useful for debugging the connector. |
| Log all connector activity. |
Note:If
UseAwsLogger is set to 1, the connector also logs information from AWS API calls.- Set the
LogLevelproperty to the desired level of information to include in log files. - Set the
LogPathproperty to the full path to the folder where you want to save log files. To make sure that the connection URL is compatible with all JDBC applications, escape the backslashes (\) in your file path by typing another backslash.
C:\temp folder:
- Optionally, to include information about AWS API calls in the log, set
UseAwsLoggerto1. - To make sure that the new settings take effect, restart your JDBC application and reconnect to the server.
LogPath property:
- An
Athena``JDBC``_driver.logfile that logs connector activity that is not specific to a connection. - An
Athena``JDBC``_connection_``[Number]``.logfile 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.
LogPath value is invalid, then the connector sends the logged information to the standard output stream (System.out).
To disable logging:
- Set the
LogLevelproperty to0. - To make sure that the new setting takes effect, restart your JDBC application and reconnect to the server.