RDK Resources
[*RDK Preferred*]
Code Management Facility
RDK Forums
[RDK Conferences]
RDK Support
Archives
Papers & Presentations Archive
...
Steps to add rdklogger to a new component:
Step 1:
Need to add LoggerEnable and LogLevel parameters in “LogAgent.xml” file for new component.
Code Block |
---|
X_RDKCENTRAL-COM_New_LoggerEnable |
...
X_RDKCENTRAL-COM_New_LogLevel |
Step 2:
Need to add the new parameters in “system_defaults_arm” file for persistent storage.
Code Block |
---|
$ X_RDKCENTRAL-COM_New_LogLevel=4 |
...
$ X_RDKCENTRAL-COM_New_LoggerEnable=1 |
Code functionality for Loglevel & LoggerEnable parameters set/get in “cosa_apis_logagentplugin.c” file
Initialise rdklogger by calling rdk_logger_init (/fss/gw/lib/debug.ini) in the new component
Step 3:
Add new component entry in “rdkb_debug.ini” file
Code Block |
---|
LOG.RDK.New = ALL FATAL ERROR WARNING NOTICE INFO DEBUG TRACE |
Step 4:
Add the below configuration in “rdkb_log4src” file for new component
...