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 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 [mod=WIFI, lvl=INFO] [tid=1953] eRT.com.cisco.spvtg.ccsp.wifi start to check eRT.com.cisco.spvtg.ccsp.psm status 240809-13:51:28.621396 [mod=WIFI, lvl=WARN] [tid=1953] Register empty object : com. 240809-13:51:29.297285 [mod=WIFI, lvl=INFO] [tid=1953] rbus.c:2847 rbus open (WebconfigDML) success 240809-13:51:29.298751 |
---|
...
LOG.RDK.WIFI = FATAL ERROR WARNING NOTICE INFO
r 240809-13:51:27.591054 [mod=WIFI, lvl=WARN] [tid=1953] 240809-13:51:2729.591959 300330 [mod=WIFI, lvl=WARNINFO] [tid=1953] RBus is enabled 240809-13:51:2729.592180 300482 [mod=WIFI, lvl=INFO] [tid=1953] connection opened for eRT.com.cisco.spvtg.ccsp.wifirbus.c:4786 Device.WiFi.WebConfig.Data.Subdoc.North subscribe retries succeeded 240809-13:51:2729.592388 301349 [mod=WIFI, lvl=INFO] [tid=19531621] rbuscorerbus.c:926 Registering method table for object eRT.com.cisco.spvtg.ccsp.wifi1018 Consumer=rbus.OneWifi.INBOX.1555 SUBSCRIBED to event=Device.WiFi.WebConfig.Data.Init_dml 240809-13:51:2729.592546 302305 [mod=WIFI, lvl=INFO] [tid=1953] eRT.com.cisco.spvtg.ccsp.wifi start to check eRT.com.cisco.spvtg.ccsp.psm statusrbuscore.c:742 Subscription for Device.WiFi.WebConfig.Data.Init_dml::Device.WiFi.WebConfig.Data.Init_dml is now active. 240809-13:51:2729.596322 302440 [mod=WIFI, lvl=INFO] [tid=1953] eRT.com.cisco.spvtg.ccsp.psm is ready, eRT.com.cisco.spvtg.ccsp.wifi continuerbus.c:4786 Device.WiFi.WebConfig.Data.Init_dml subscribe retries succeeded 240809-13:51:2729.596434 493276 [mod=WIFI, lvl=INFOWARN] [tid=1953] !!! Connected to message bus... bus_handle: 0x0x7f8c018de0 !!! RDKB_SYSTEM_BOOT_UP_LOG : CosaWifiInitialize - WiFi initialization complete. 240809-13:51:2829.620576 493567 [mod=WIFI, lvl=INFO] [tid=1953] rbuscorerbus.c:742 Subscription for _rbus_session_mgr::currentSessionIDSignal is now active.2771 rbus open for component: t2_lib_ccsp-wifi-agent 240809-13:51:2829.621396 493853 [mod=WIFI, lvl=WARNINFO] [tid=1953] Register empty object : com.rbus.c:2847 rbus open (t2_lib_ccsp-wifi-agent) success 240809-13:51:2829.621487 496362 [mod=WIFI, lvl=WARNERROR] [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. Register empty object : com.cisco. subsystem_prefix eRT. setv from/to component(eRT.WIFI, lvl=WARN] [tid=1953] Register empty object : com.cisco.spvtg.ccsp.wifi): Device.WiFi.SSID.1.SSID Execution succeed. |
---|
240809-13:51:2838.628362 446402 [mod=WIFI, lvl=WARNINFO] [tid=1953] Data model XML file 1 = TR181-WiFi-USGv2.XML 240809-13:51:2846.638364 478663 [mod=WIFI, lvl=WARNINFO] [tid=1953] DM Library module name = COSA_TR181_WiFi_USGv21709] subscribeSubdocForceReset: [Device.X_RDK_WebConfig.webcfgSubdocForceReset] Component found 240809-13:51:2946.296945 481080 [mod=WIFI, lvl=INFO] [tid=19531709] rbus.c:2771 rbus open for component: WebconfigDML4786 Device.X_RDK_WebConfig.webcfgSubdocForceReset subscribe retries succeeded 240809-13:51:2946.297285 481150 [mod=WIFI, lvl=INFO] [tid=1953] rbus.c:2847 rbus open (WebconfigDML) success1709] subscribeSubdocForceReset: subscribed to event Device.X_RDK_WebConfig.webcfgSubdocForceReset 240809-13:5155:2900.302440 879575 [mod=WIFI, lvl=INFOWARN] [tid=1953] rbus.c:4786 Device.WiFi.WebConfig.Data.Init_dml subscribe retries succeeded1621] Send all pending notifications 1 |
---|
root@RaspberryPi-Gateway:~# dmcli eRT setv WARN] [tid=9545] << str[i] 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. |
---|
...
,16,RPI_RdkB,RPI_RDKB-AP0,2 >> |
---|
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 | INFODEBUG] [tid= | 1709] subscribeSubdocForceReset: subscribing to event Device.X_RDK_WebConfig.webcfgSubdocForceReset1597] rbus_asyncsubscribe.c:306 waked up 241009-12:25:46.278706 [mod=WIFI, lvl= | INFODEBUG] [tid= | 1709] rbuscore.c:742 Subscription for Device.X_RDK_WebConfig.webcfgSubdocForceReset::Device.X_RDK_WebConfig.webcfgSubdocForceReset is now active.1597] rbus_asyncsubscribe.c:117 now=00:27:47.704640 241009-12:25:46.278817 | 240809-13:51:46.481080 [mod=WIFI, lvl= | INFODEBUG] [tid= | 17091597] rbus_asyncsubscribe.c: | 4786 Device.X_RDK_WebConfig.webcfgSubdocForceReset subscribe retries succeeded296 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 >> |
---|
964] << |
---|
DslhWmpdoMpaSetParameterValues sending Notification Device.X_CISCO_COM_DeviceControl.LanManagementEntry.1. |
---|
LanMode,16, |
---|
bridge-static,router,2 >> |
---|
241009- |
---|
06: |
---|
53: |
---|
25. |
---|
578636 [mod= |
---|
PAM, lvl=WARN] [tid= |
---|
964] << |
---|
Change the log level during runtime
...
DslhWmpdoMpaSetParameterValues sending Notification ulArraySize 1 >> 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 |
---|