Telematics SDK - User Guide
v1.46.67
|
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 and applications at desired threshold levels into device console, diag and optionally into a log file.
By default, tel.conf will be placed under /etc location
The configuration file called "appName.conf" or "tel.conf" is used to configure logger settings such as logging threshold, enable/disable file logging and to change the log file name. These file have to be updated to override default behavior. These configuration file should be copied either in /etc or the folder where the application is running.
To modify tel.conf file under /etc, you need to mount partition on MDM A7 processor
NOTE: The file path where the log file will be written to, need to be in a writable partition, accessible to the application that is running.
In the case of MDMs A7 processor the /data partition is writable.
Here is how the platform searches for the configuration file. If configuration file is found use the same to configure logger settings else keep continue to search in below order.
This allows flexibility for app's to either share the same log file or keep each apps log file separate.
CONSOLE_LOG_LEVEL, FILE_LOG_LEVEL specifies the threshold for console log messages. Possible LOG_LEVEL values are NONE, PERF, ERROR, WARNING, INFO, DEBUG
NOTE: For an applicaiton to be able to log to the tel.log file, it should have "system" linux group permissions.
DIAG_LOG_LEVEL specifies the threshold for logs messages displayed in QXDM. Possible LOG_LEVEL values are NONE, PERF, ERROR, WARNING, INFO, DEBUG. The mapping of SDK log levels to QXDM log levels in shown below:
NOTE: For an applicaiton to be able to log to the Diag, it should have "diag" linux group permissions.
TELUX_LOG_COMPONENT_FILTER allows one or more whitelist which SDK technology domain should be logged
MAX_LOG_FILE_SIZE specifies the maximum allowed size(in bytes) of the log file When the log file reaches its maximum size, it is saved as tel.log.backup.
Used to prefix date and time on every log Message
Specifies the path of the log file. In an external application processor, the path needs to be in a writable partition. If this default path does not exist in the system or it is not writable, this path needs to be updated accordingly.
Specifies the name of the log file to be used