Telematics SDK - User Guide
v1.8.1
|
Quick steps: Please follow below steps to configure Logger settings.
Telematics SDK provides a configurable logger module that can be used to log messages from Telematics SDK library at desired threshold levels into device console and optionally into a log file.
A configuration file called "tel.conf" is provided to configure logger settings such as logging threshold, enable/ disable file logging and to change the log file name.
File "tel.conf" is located in project workspace in "<BASE_DIR>/config" and in "/data" folder on the target device.
In order to change the default behavior of the Telematics SDK library, the settings in "tel.conf" file need to be updated as required and the updated file should be copied into the same folder where the application using Telematics SDK library is located.
CONSOLE_LOG_LEVEL, FILE_LOG_LEVEL specifies the threshold for console log messages Possible LOG_LEVEL values are NONE, ERROR, WARNING, INFO, DEBUG
MAX_LOG_FILE_SIZE specifies the maximum allowed size(in bytes) of the log file
Used to prefix date and time on every log Message
Specifies the path of the log file
Specifies the name of the log file to be used