Connector Logging
Use connector logging to track the activity in the Simba OneLake ODBC Connector. You can specify the amount of detail included in the log files. The table below lists the logging levels that are available, in order from least verbose to most verbose.Logging Level | Description |
---|---|
OFF | Disables all logging. |
FATAL | Logs severe error events that lead the connector to abort. |
ERROR | Logs error events that might allow the connector 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 connector. |
DEBUG | Logs detailed information that is useful for debugging the connector. |
TRACE | Logs all connector activity. |
- 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.
- In the Log Level drop-down list, select the desired level of information to include in log files.
- In the Log Path field, type the full path to the folder where you want to save log files.
- In the Max Number Files field, type the maximum number of log files to keep.
- In the Max File Size field, type the maximum size of each log file in megabytes (MB).
- Click OK.
- Restart your ODBC application to make sure that the new settings take effect.
LogPath
key:
- A
simbaonelakeodbcdriver.log
file that logs connector activity that is not specific to a connection. - A
simbaonelakeodbcdriver_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.
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.
To disable connector logging in Windows:
- 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.
- In the Log Level drop-down list, select LOG_OFF.
- Click OK.
Wire Protocol Component Logging
Use wire protocol component logging to track the data activity between the connector and the Onelake instance. You can specify the amount of detail to include in the log files. The table below lists the logging levels that are available, in order from least verbose to most verbose.Logging Level | Description |
---|---|
0 | Disables all logging. |
1 | Logs error events that might allow the wire protocol component to continue running. 1 is the default logging level. |
2 | Logs general information that describes the progress of the wire protocol component. |
3 | Logs detailed information that is useful for debugging the wire protocol component. |
4 | Logs all activity in the wire protocol component. |
- Open the System Information dialog box:
- If you are using Windows 7 or earlier, click Start
, then right-click Computer , and then click Properties.
- Or, if you are using Windows 8 or later, on the Start screen, right-click This PC and then click Properties.
- If you are using Windows 7 or earlier, click Start
- Click Advanced System Settings.
- In the System Properties dialog box, click the Advanced tab and then click Environment Variables.
- Choose one:
- If the TDSTRACE variable already exists in the System Variables list, select it and then click Edit.
- Or, if the TDSTRACE variable does not appear in the System Variables list, click New and then in the Variable Name field type TDSTRACE.
- In the Variable Value field, type [LoggingLevel] :[LogFilePath] , where [LoggingLevel] is the logging level indicating the amount of detail to include in the log file and [LogFilePath] is the full path of the log file.
MyWireLog.log
located in the C:\Logs
folder.
- To save your changes and close the Edit System Variable dialog box, click OK
- Click OK to close the Environment Variables dialog box, and then click OK to close the System Properties dialog box.
- Open the System Information dialog box:
- If you are using Windows 7 or earlier, click Start
, then right-click Computer , and then click Properties.
- Or, if you are using Windows 8 or later, on the Start screen, right-click This PC and then click Properties.
- If you are using Windows 7 or earlier, click Start
- Click Advanced System Settings.
- In the System Properties dialog box, click the Advanced tab and then click Environment Variables.
- Select TDSTRACE from the System Variables list and then click Edit.
- In the Variable Value field, replace the existing value with 0.
- To save your changes and close the Edit System Variable dialog box, click OK.
- Click OK to close the Environment Variables dialog box, and then click OK to close the System Properties dialog box.
ODBC Tracing
You can use the ODBC Data Source Administrator to trace connection activity in the ODBC layer. To start tracing using the ODBC Data Source Administrator:- In the ODBC Data Source Administrator, click the Tracing tab.
- In the Log File Path area, click Browse. In the Select ODBC Log File dialog box, browse to the location where you want to save the log file, then type a descriptive file name in the File name field, and then click Save.
- On the Tracing tab, click Start Tracing Now.
- In the ODBC Data Source Administrator, on the Tracing tab, click Stop Tracing Now.