Error handling
Logging and diagnostics
TIM API provides extensive logging capabilities to help monitor application behavior, simplify troubleshooting, and support issue investigation.
Java
Log levels
Configure the amount of diagnostic information written to the logs using the following log levels:
- ALL
- FINEST
- FINER
- FINE
- CONFIG
- INFO
- WARNING
- SEVERE
- OFF
Configure logging
Adjust log levels programmatically after creating a Terminal instance. You can configure the TIM API logger, modify existing handlers, or add custom handlers to control log output and destinations.
Log rotation
TIM API supports automatic log rotation to manage log storage and retention.
| Parameter | Description |
|---|---|
| LogRetainFileCount | Number of log files to retain before deletion or archiving. |
| LogFileCountPerArchive | Number of log files stored in an archive before a new archive is created. |
| LogRetainArchiveCount | Number of archives to retain. 0 disables archiving. |
Use these settings in TerminalSettings or TimApi.cfg to control log retention and archival behavior.