RDK Resources
[*RDK Preferred*]
Code Management Facility
RDK Forums
[RDK Conferences]
RDK Support
Archives
Papers & Presentations Archive
...
Device.LogAgent.X_RDKCENTRAL-COM_PAM_LogLevel
...
Limitations :
Scenario 1:
1. Use the CFLAG "DISABLE_LOGAGENT" during compilation.
2. Set the log levels to "TRACE" in the debug.ini file.
3. Try to generate a the logs for any component.
4. An example would be to enable and disable the Device.ManagementServer.EnableCWMP parameter for TR069
Expected Result:
Logs should be generated in the TR69log.txt.0 file.
Actual Result:
Logs are generated in the TR69log.txt.0 file.
Scenario 2:
1. Do not use the CFLAG "DISABLE_LOGAGENT" during compilation.
2. Set the log levels to "7" for Device.LogAgent.X_RDKCENTRAL-COM_TR69_LogLevel and "true" for Device.LogAgent.X_RDKCENTRAL-COM_TR69_LoggerEnable.
3. Try to generate a the logs for the TR069 component.
4. An example would be to enable and disable the Device.ManagementServer.EnableCWMP parameter for TR069
Expected Result:
Logs should be generated in the TR69log.txt.0 file.
Actual Result:
Logs are generated in the TR69log.txt.0 file.
2. So far, RPI boards supports only five ccsp components modules(PAM,PSM,WiFi,EthAgent,TR69).
3. Once we set the log level ,logger enable/disbale paramter by using dmcli .Immediately , that corresponding component will restart.
4. If we need to add any CCSP components for logger support in future, we need to add those DM parameters in LogAgent.XML and cosa_apis_logagentplugin.c in CcspLogAgent Component. Also, those DM parameters are globally defined in CcspCommonLibrary Component in ansc_debug.c file.Please refer the below steps,
Steps to add rdklogger to a new component:
Need to add LoggerEnable and LogLevel parameters in “LogAgent.xml” file for new component.
Need to add the new parameters in “system_defaults_arm” file for persistent storage.
$ 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
Add new component entry in “rdkb_debug.ini” file
LOG.RDK.New = ALL FATAL ERROR WARNING NOTICE INFO DEBUG TRACE
Add the below configuration in “rdkb_log4src” file for new component
<rollingpolicy name="New_rollingpolicy" type="sizewin" maxsize="2097152" maxnum="2"/>
<appender name="RI_Newrollingfileappender" type="rollingfile" logdir="/rdklogs/logs/" prefix="Newlog.txt" layout="comcast_dated" rollingpolicy="New_rollingpolicy"/>
<category name="RI.Stack.New" priority="debug" appender= "RI_Newrollingfileappender"/>
<category name="RI.Stack.LOG.RDK.New" priority="debug" appender= "RI_Newrollingfileappender"/>