For more information, including FAQs and resources, please visit the link below:
RDKM-SSO
Any questions or comments please feel free to contact RDK Support team support@rdkcentral.com . Thank you. ***
Table of Contents |
---|
...
The
...
RDK logger is
...
a general-purpose logging mechanism used in RDK-B
...
...
, utilizing log4c for formatting and supporting multiple log levels for different modules. Each component’s log level is read from the debug.ini configuration file during initialization. Implemented as a shared library, components must link to this library to include logging functionality.
When the unit boots up, each RDK-B component
...
initializes the logger and
...
starts logging into the corresponding log file
...
based on the log level set for the component
...
. This setup enables component-wise logging across RDK-B modules.
...
...
Loge levels | Description |
---|---|
RDK_LOG_DEBUG | Information that is diagnostically helpful to people more than just developers. |
RDK_LOG_ERROR | Any error which is fatal to the operation but not the service (cant open a file, missing data, etc) |
RDK_LOG_FATAL | Any error that is forcing a shutdown of the service or application to prevent data loss (or further data loss), reserve these only for the most heinous errors and situations where there is guaranteed to have been data corruption or loss. |
RDK_LOG_INFO | Generally useful information to log (service start/stop, configuration assumptions, etc). |
RDK_LOG_NOTICE | Anything that largely superfluous for application-level logging. |
RDK_LOG_TRACE1, RDK_LOG_TRACE2,... | Only when it would be "tracing" the code and trying to find one part of a function specifically. |
RDK_LOG_WARN | Anything that can potentially cause application oddities, but for which the application automatically recovering. |
It also contains entries for each component log levels. Log levels can be controlled independently for each module.
Example: LOG.RDK.<component name> = ALL, FATAL, ERROR WARNING, NOTICE, INFO, DEBUG
root@RaspberryPi-Gateway:~# dmcli eRT getv Device.WiFi.SSID.1.SSID |
---|
LOG.RDK.WIFI = FATAL ERROR WARNING NOTICE INFO |
---|
tail -f /rdklogs/logs/WiFilog.txt.0 |
---|
...
LOG.RDK.WIFI = FATAL ERROR WARNING NOTICE INFO
r 240809-13:51:27.591054 [mod=WIFI, lvl=WARN] [tid=1953] 240809-13:51:27.592180 [mod=WIFI, lvl=INFO] [tid=1953] connection opened for eRT.com.cisco.spvtg.ccsp.wifi 240809-13:51:27.592546 591054 [mod=WIFI, lvl=INFOWARN] [tid=1953] eRT.com.cisco.spvtg.ccsp.wifi start to check eRT.com.cisco.spvtg.ccsp.psm status 240809-13:51:2827.602883 592180 [mod=WIFI, lvl=INFO] [tid=1953] CcspBaseIf_Register_Event_rbus : rbus_registerEvent called for event: currentSessionIDSignalconnection opened for eRT.com.cisco.spvtg.ccsp.wifi 240809-13:51:2827.621396 592546 [mod=WIFI, lvl=WARNINFO] [tid=1953] Register empty object : com. eRT.com.cisco.spvtg.ccsp.wifi start to check eRT.com.cisco.spvtg.ccsp.psm status 240809-13:51:28.628910 621396 [mod=WIFI, lvl=WARN] [tid=1953] DM Library module name = CCSP Base Data ModelRegister empty object : com. 240809-13:51:29.302305 297285 [mod=WIFI, lvl=INFO] [tid=1953] rbuscorerbus.c:742 Subscription for Device.WiFi.WebConfig.Data.Init_dml::Device.WiFi.WebConfig.Data.Init_dml is now active.2847 rbus open (WebconfigDML) success 240809-13:51:29.302440 298751 [mod=WIFI, lvl=INFO] [tid=19531621] rbus.c:4786 1018 Consumer=rbus.OneWifi.INBOX.1555 SUBSCRIBED to event=Device.WiFi.WebConfig.Data.Init_dml subscribe retries succeededSubdoc.North 240809-13:51:29.493276 300330 [mod=WIFI, lvl=WARNINFO] [tid=1953] RDKB_SYSTEM_BOOT_UP_LOG : CosaWifiInitialize - WiFi initialization completerbuscore.c:742 Subscription for Device.WiFi.WebConfig.Data.Subdoc.North::Device.WiFi.WebConfig.Data.Subdoc.North is now active. 240809-13:51:29.493495 300482 [mod=WIFI, lvl=INFO] [tid=1953] rbuscorerbus.c:2326 RBus Enabled4786 Device.WiFi.WebConfig.Data.Subdoc.North subscribe retries succeeded 240809-13:51:29.493567 301349 [mod=WIFI, lvl=INFO] [tid=19531621] rbus.c:2771 rbus open for component: t2_lib_ccsp-wifi-agent1018 Consumer=rbus.OneWifi.INBOX.1555 SUBSCRIBED to event=Device.WiFi.WebConfig.Data.Init_dml 240809-13:51:29.493853 302305 [mod=WIFI, lvl=INFO] [tid=1953] rbusrbuscore.c:2847 rbus open (t2_lib_ccsp-wifi-agent) success240809-13:742 Subscription for Device.WiFi.WebConfig.Data.Init_dml::Device.WiFi.WebConfig.Data.Init_dml is now active. 240809-13:51:29.302440 51:29.496362 [mod=WIFI, lvl=ERRORINFO] [tid=1953] rbus.c:3317 get by t2_lib_ccsp-wifi-agent failed; Received error 17 from RBUS Daemon for the object Telemetry.ReportProfiles.ccsp-wifi-agent.EventMarkerList |
---|
...
root@RaspberryPi-Gateway:~# dmcli eRT setv Device.WiFi.SSID.1.SSID string RPI_RdkB
CR component name is: eRT.com.cisco.spvtg.ccsp.CR
subsystem_prefix eRT.
setv from/to component(eRT.com.cisco.spvtg.ccsp.wifi): Device.WiFi.SSID.1.SSID
Execution succeed.
4786 Device.WiFi.WebConfig.Data.Init_dml subscribe retries succeeded 240809-13:51:29.493276 [mod=WIFI, lvl=WARN] [tid=1953] RDKB_SYSTEM_BOOT_UP_LOG : CosaWifiInitialize - WiFi initialization complete. |
---|
240809-13:51:3829.446402 493567 [mod=WIFI, lvl=INFO] [tid=15551953] rbus.c:4786 Device.DeviceInfo.X_RDKCENTRAL-COM_xOpsDeviceMgmt.Mesh.Enable subscribe retries succeeded2771 rbus open for component: t2_lib_ccsp-wifi-agent 240809-13:51:4629.478663 493853 [mod=WIFI, lvl=INFO] [tid=17091953] subscribeSubdocForceReset: [Device.X_RDK_WebConfig.webcfgSubdocForceReset] Component foundrbus.c:2847 rbus open (t2_lib_ccsp-wifi-agent) success 240809-13:51:4629.478765 496362 [mod=WIFI, lvl=INFOERROR] [tid=17091953] rbus.c:3317 get by t2_lib_ccsp-wifi-agent failed; Received error 17 from RBUS Daemon for the object Telemetry.ReportProfiles.ccsp-wifi-agent.EventMarkerList |
---|
root@RaspberryPi-Gateway:~# dmcli eRT setv Device.WiFi.SSID.1.SSID string RPI_RdkB CR component name is: eRT.com.cisco.spvtg.ccsp.CR subsystem_prefix eRT. setv from/to component(eRT.com.cisco.spvtg.ccsp.wifi): Device.WiFi.SSID.1.SSID Execution succeed. |
---|
240809-13:51:38.446402 [mod= subscribeSubdocForceReset: subscribing to event Device.X_RDK_WebConfig.webcfgSubdocForceReset 240809-13:51:46.481150 478663 [mod=WIFI, lvl=INFO] [tid=1709] subscribeSubdocForceReset: subscribed to event [Device.X_RDK_WebConfig.webcfgSubdocForceReset] Component found 240809-13:5551:0046.879371 481080 [mod=WIFI, lvl=WARNINFO] [tid=1621] << DslhWmpdoMpaSetParameterValues sending Notification Device.WiFi.SSID.1.SSID,16,RPI_RdkB,RPI_RDKB-AP0,2 >>1709] rbus.c:4786 Device.X_RDK_WebConfig.webcfgSubdocForceReset subscribe retries succeeded 240809-13:5551:0046.879419 481150 [mod=WIFI, lvl=WARNINFO] [tid=1621] << DslhWmpdoMpaSetParameterValues sending Notification ulArraySize 1 >> 240809-13:55:00.879896 879575 [mod=WIFI, lvl=WARN] [tid=95451621] << Send_Notification_Thread_Func i 0 >> |
---|
Change the log level during runtime
...
paramCount 1 |
---|
root@RaspberryPi-Gateway:~# rdklogctrl OneWifi LOG.RDK.WIFI DEBUG Sent message to update log level of LOG.RDK.WIFI for OneWifi process |
---|
root@RaspberryPi-Gateway:~# tail -f /rdklogs/logs/WiFilog.txt.0 241009-12:25:46.278706 [mod=WIFI, lvl=DEBUG] [tid=1597] rbus_asyncsubscribe.c:117 now=00:27:47.704640 241009-12:25:46.278817 [mod=WIFI, lvl=DEBUG] [tid=1597] rbus_asyncsubscribe.c:296 timedwait until 00:28:48.704640 |
---|
root@RaspberryPi-Gateway:~# rdklogctrl OneWifi LOG.RDK.WIFI ~DEBUG Sent message to update log level of LOG.RDK.WIFI for OneWifi process |
---|
LOG.RDK.PAM = FATAL ERROR WARNING NOTICE INFO |
---|
dmcli eRT getv Device.X_CISCO_COM_DeviceControl.LanManagementEntry.1.LanMode CR component name is: eRT.com.cisco.spvtg.ccsp.CR |
---|
root@RaspberryPi-Gateway:~# dmcli eRT setv Device.X_CISCO_COM_DeviceControl.LanManagementEntry.1.LanMode string bridge-static CR component name is: eRT.com.cisco.spvtg.ccsp.CR subsystem_prefix eRT. setv from/to component(eRT.com.cisco.spvtg.ccsp.pam): Device.X_CISCO_COM_DeviceControl.LanManagementEntry.1.LanMode Execution succeed. |
---|
241009-06:53:25.578466 [mod=PAM, lvl=WARN] [tid=964] << DslhWmpdoMpaSetParameterValues sending Notification str Device.X_CISCO_COM_DeviceControl.LanManagementEntry.1.LanMode,16,bridge-static,router,2 >> 241009-06:53:25.578896 [mod=PAM, lvl=WARN] [tid=964] RDKB_LAN_CONFIG_CHANGED: Setting new LanMode value (bridge-dhcp(1),bridge-static(2),router(3),full-bridge-static(4)) as (2)... |
---|
...
LOG.RDK.PAM = FATAL ERROR WARNING NOTICE INFO
dmcli eRT getv Device.X_CISCO_COM_DeviceControl.LanManagementEntry.1.LanMode
CR component name is: eRT.com.cisco.spvtg.ccsp.CR:Device.X_CISCO_COM_DeviceControl.LanManagementEntry.1. |
---|
|
---|
Device.X_CISCO_COM_DeviceControl.LanManagementEntry.1.LanMode |
---|
,16,bridge-static |
---|
CR component name is: eRT.com.cisco.spvtg.ccsp.CR
subsystem_prefix eRT.
setv from/to component(eRT.com.cisco.spvtg.ccsp.pam): Device.X_CISCO_COM_DeviceControl.LanManagementEntry.1.LanMode
Execution succeed.
,router,2 >> |
---|
590738 [mod=PAM, lvl=WARN] [tid=964] |
---|
--------- LanMngm_Commit CosaDmlDcResetBr0 1.0.0.254,0.255.255.255>> |
---|
594950 [mod=PAM, lvl=WARN] [tid=964] |
---|
--------- LanMngm_Commit CosaDmlDcResetBr0 << |
---|
595116 [mod=PAM, lvl=WARN] [tid=964] |
---|
After committing:Device.X_CISCO_COM_DeviceControl.LanManagementEntry.1.:0 |
---|
656529 [mod=PAM, lvl=WARN] [tid=964] |
---|
-----DeviceControl_GetParamBoolValue,Trying to get parameter 'ErouterEnable' |
---|
656698 [mod=PAM, lvl=WARN] [tid=964] |
---|
DslhObjcoValidate: ErouterEnable, bsUpdate = 3 241009-06:53:25. |
---|
658429 [mod=PAM, lvl=WARN] [tid=964] |
---|
DslhObjcoValidate: Enable, bsUpdate = 3 241009-06:53:25. |
---|
659793 [mod=PAM, lvl=WARN] [tid=964] Before committing:Device. |
---|
Bridging.Bridge.1.Port.9. |
---|
659920 [mod=PAM, lvl= |
---|
NOTICE] [tid= |
---|
964] <HL>SWBrConfirmStructureUpdate port remove member Inx=dmsb.l2net.1.Members.Eth, Val=lbr0 |
---|
659970 [mod=PAM, lvl= |
---|
NOTICE] [tid= |
---|
964] |
---|
<HL> _ |
---|
COSA_RemoveBPortMember path=dmsb.l2net.1.Members.Eth name=lbr0 |
---|
660059 [mod=PAM, lvl= |
---|
NOTICE] [tid= |
---|
964] <HL> _Psm_GetBPortMemberList path=dmsb.l2net.1.Members.Eth value=NULL |
---|
661407 [mod=PAM, lvl= |
---|
NOTICE] [tid=964] |
---|
_ |
---|
Psm_GetBPortMemberList: retPsmGet == CCSP_SUCCESS reading dmsb.l2net.1.Members.Eth= |
---|
661509 [mod=PAM, lvl= |
---|
NOTICE] [tid= |
---|
964] |
---|
<HL> _ |
---|
COSA_DelToken str= token=lbr0 |
---|
661554 [mod=PAM, lvl= |
---|
NOTICE] [tid=964] |
---|
<HL> _COSA_DelToken Not Found token in Buffer= |
---|
661622 [mod=PAM, lvl= |
---|
NOTICE] [tid=964] |
---|
<HL>SWBrConfirmStructureUpdate port add member Inx=dmsb.l2net.1.Members.Eth, Val=lbr0 |
---|
661670 [mod=PAM, lvl= |
---|
NOTICE] [tid=964] |
---|
<HL> _COSA_AddBPortMember path=dmsb.l2net.1.Members.Eth name=lbr0 |
---|
661713 [mod=PAM, lvl= |
---|
NOTICE] [tid=964] |
---|
<HL> _Psm_GetBPortMemberList path=dmsb.l2net.1.Members.Eth value=NULL |
---|
663032 [mod=PAM, lvl= |
---|
NOTICE] [tid=964] |
---|
_Psm_GetBPortMemberList: retPsmGet == CCSP_SUCCESS reading dmsb.l2net.1.Members.Eth= |
---|
663137 [mod=PAM, lvl= |
---|
NOTICE] [tid=964] |
---|
<HL> _COSA_AddToken new Str=lbr0 after add:lbr0 |
---|
663181 [mod=PAM, lvl= |
---|
NOTICE] [tid=964] |
---|
<HL> _Psm_SetBPortMemberList path=dmsb.l2net.1.Members.Eth value=lbr0 |
---|
664380 [mod=PAM, lvl=NOTICE] [tid=964] |
---|
_Psm_SetBPortMemberList: retPsmSet == CCSP_SUCCESS writing dmsb.l2net.1.Members.Eth |
---|
=lbr0 |
---|
664465 [mod=PAM, lvl=NOTICE] [tid=964] <HL> _COSA_ |
---|
AddBPortMember new path=dmsb.l2net.1.Members.Eth name=lbr0 |
---|
664527 [mod=PAM, lvl=NOTICE] [tid=964] <HL> _Psm_ |
---|
AddLinkMembers param_name=dmsb.l2net.1.Members. |
---|
Link |
---|
665632 [mod=PAM, lvl=NOTICE] [tid=964] _Psm_ |
---|
AddLinkMembers: retPsmGet == CCSP_SUCCESS reading dmsb.l2net.1.Members. |
---|
Link |
---|
701156 [mod=PAM, lvl=NOTICE] [tid=964] |
---|
lanBrPCtlSetEnabled: ioctl(SIOCGIFFLAGS) failed (errno: 19): No such device |
---|
713424 [mod=PAM, lvl=NOTICE] [tid=964] <HL> _COSA_ |
---|
GetInterfaceTypeStr |
---|
713585 [mod=PAM, lvl=NOTICE] [tid=964] |
---|
_Psm_SetBPort linkType=Ethernet port->linkType=1 |
---|
721470 [mod=PAM, lvl= |
---|
WARN] [tid=964] |
---|
After committing:Device.Bridging.Bridge.1. |
---|
Port.9.:0 |
---|
721574 [mod=PAM, lvl=NOTICE] [tid=964] |
---|
The notification = 0 |
---|
722793 [mod=PAM, lvl= |
---|
WARN] [tid=964] |
---|
Before committing:Device.X_CISCO_COM_DeviceControl. |
---|
722809 [mod=PAM, lvl= |
---|
INFO] [tid= |
---|
31281] bridge_mode_wifi_notifier_thread - Mode:2 Radio:true SSID:false |
---|
722917 [mod=PAM, lvl= |
---|
WARN] [tid=964] After committing:Device.X_CISCO_COM_DeviceControl.:0 |
---|
rdklogctrl CcspPandMSsp LOG.RDK.PAM DEBUG |
---|
Y.CliStatList | <HL> _Psm_SetBPortMemberList path=dmsb.l2net.1.Members.Eth value=lbr0[mod=PAM, lvl= | NOTICEDEBUG] [tid= | 964] _Psm_SetBPortMemberList: retPsmSet == CCSP_SUCCESS writing dmsb.l2net.1.Members.Eth=lbr01599] rbusValueChange_GetParameterValue Device.DeviceInfo.X_RDKCENTRAL-COM_WIFI_TELEMETRY.TxRxRateList success 1,2 | NOTICEDEBUG] [tid= | 9641599] | <HL> _COSA_AddBPortMember new path=dmsb.l2net.1.Members.Eth name=lbr0rbusValueChange_pollingThreadFunc: value change not detected for Device.DeviceInfo.X_RDKCENTRAL-COM_WIFI_TELEMETRY.TxRxRateList | NOTICEDEBUG] [tid= | 964] <HL> _Psm_AddLinkMembers param_name=dmsb.l2net.1.Members.Link1599] rbusValueChange_GetParameterValue Device.DeviceInfo.X_RDKCENTRAL-COM_WIFI_TELEMETRY.NormalizedRssiList success 1,2 | NOTICEDEBUG] [tid= | 9641599] rbusValueChange_ | Psm_AddLinkMembers: retPsmGet == CCSP_SUCCESS reading dmsb.l2net.1.Members.LinkpollingThreadFunc: value change not detected for Device.DeviceInfo.X_RDKCENTRAL-COM_WIFI_TELEMETRY.NormalizedRssiList | NOTICEDEBUG] [tid= | 964] lanBrPCtlSetEnabled: ioctl(SIOCGIFFLAGS) failed (errno: 19): No such device1599] rbusValueChange_GetParameterValue Device.DeviceInfo.X_RDKCENTRAL-COM_WIFI_TELEMETRY.SNRList success 1,2 | NOTICEDEBUG] [tid= | 964] <HL> _COSA_GetInterfaceTypeStr1599] rbusValueChange_pollingThreadFunc: value change not detected for Device.DeviceInfo.X_RDKCENTRAL-COM_WIFI_TELEMETRY.SNRList | 0612: | 5339: | 2535. | 713585 502156 [mod=PAM, lvl= | NOTICEDEBUG] [tid= | 9641599] rbusValueChange_ | Psm_SetBPort linkType=Ethernet port->linkType=1GetParameterValue Device.X_COMCAST-COM_GRE.Tunnel.1.TunnelStatus success | 0612: | 5339: | 2535. | 721470 502236 [mod=PAM, lvl= | WARNDEBUG] [tid= | 964] After committing:Device.Bridging.Bridge.1.Port.9.:01599] rbusValueChange_pollingThreadFunc: value change not detected for Device.X_COMCAST-COM_GRE.Tunnel.1.TunnelStatus | NOTICEDEBUG] [tid= | 964] The notification = 01599] rbusValueChange_GetParameterValue Device.DeviceInfo.X_RDKCENTRAL-COM_WIFI_TELEMETRY.CliStatList success 1,2 | 0612: | 5339: | 2535. | 722793 502407 [mod=PAM, lvl= | WARNDEBUG] [tid= | 964] Before committing:Device.X_CISCO_COM_DeviceControl.1599] rbusValueChange_pollingThreadFunc: value change not detected for Device.DeviceInfo.X_RDKCENTRAL-COM_WIFI_TELEMETRY.CliStatList | INFODEBUG] [tid= | 312811599] | bridge_mode_wifi_notifier_thread - Mode:2 Radio:true SSID:falserbusValueChange_GetParameterValue Device.DeviceInfo.X_RDKCENTRAL-COM_WIFI_TELEMETRY.TxRxRateList success 1,2 | WARNDEBUG] [tid= | 964] After committing:Device.X_CISCO_COM_DeviceControl.:01599] rbusValueChange_pollingThreadFunc: value change not detected for Device.DeviceInfo.X_RDKCENTRAL-COM_WIFI_TELEMETRY.TxRxRateList |
---|