Logging
The TIM API is able to log an extensive set of events and actions within the TIM API. It's key that logs are created and stored properly. Logging enables support and makes bug-tracking much easier.
The TIM API C fires log events for every log_record. It's the application's responsibility to manage and store these.
In order to get notified about log-events, implement the callback function ta_cb_publish_log_record and register it with ta_logger_set_global_logger .
Note: The TIM SDK contains example code for how to manage and store log-records. You can find the files "timapi_loghelper.c" and "timapi_loghelper.h" under "C/Utils/" in the TIM SDK.
Log Level
The following logging levels exist:
* ta_c_ll_finest
* ta_c_ll_fine
* ta_c_ll_info
* ta_c_ll_warning
* ta_c_ll_severe
* ta_c_ll_off
Log Configuration
Note: ta_terminal_settings contains deprecated options regarding logging. Do not use these:
* ~~set_log_dir~~
* ~~get_log_dir~~
* ~~set_log_file_count_per_archive~~
* ~~get_log_file_count_per_archive~~
* ~~set_log_retain_archive_count~~
* ~~get_log_retain_archive_count~~
* ~~set_log_retain_file_count~~
* ~~get_log_retain_file_count~~
See chapter Logging for how to get logs in TIM API C.