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. ***
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 [mod=WIFI, lvl=INFO] [tid=1621] rbus.c:1018 Consumer=rbus.OneWifi.INBOX.1555 SUBSCRIBED to event=Device.WiFi.WebConfig.Data.Subdoc.North 240809-13:51:29.300330 [mod=WIFI, lvl=INFO] [tid=1953] rbuscore.c:742 Subscription for Device.WiFi.WebConfig.Data.Subdoc.North::Device.WiFi.WebConfig.Data.Subdoc.North is now active. 240809-13:51:29.300482 [mod=WIFI, lvl=INFO] [tid=1953] rbus.c:4786 Device.WiFi.WebConfig.Data.Subdoc.North subscribe retries succeeded 240809-13:51:29.301349 [mod=WIFI, lvl=INFO] [tid=1621] rbus.c:1018 Consumer=rbus.OneWifi.INBOX.1555 SUBSCRIBED to event=Device.WiFi.WebConfig.Data.Init_dml 240809-13:51:29.302305 [mod=WIFI, lvl=INFO] [tid=1953] rbuscore.c:742 Subscription for Device.WiFi.WebConfig.Data.Init_dml::Device.WiFi.WebConfig.Data.Init_dml is now active. 240809-13:51:29.302440 [mod=WIFI, lvl=INFO] [tid=1953] rbus.c: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:29.493567 [mod=WIFI, lvl=INFO] [tid=1953] rbus.c:2771 rbus open for component: t2_lib_ccsp-wifi-agent 240809-13:51:29.493853 [mod=WIFI, lvl=INFO] [tid=1953] rbus.c:2847 rbus open (t2_lib_ccsp-wifi-agent) success 240809-13:51:29.496362 [mod=WIFI, lvl=ERROR] [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. |
---|
240809-13:51:38.446402 [mod=WIFI, lvl=INFO] [tid=1555] rbus.c:4786 Device.DeviceInfo.X_RDKCENTRAL-COM_xOpsDeviceMgmt.Mesh.Enable subscribe retries succeeded 240809-13:51:46.478663 [mod=WIFI, lvl=INFO] [tid=1709] subscribeSubdocForceReset: [Device.X_RDK_WebConfig.webcfgSubdocForceReset] Component found 240809-13:51:46.481080 [mod=WIFI, lvl=INFO] [tid=1709] rbus.c:4786 Device.X_RDK_WebConfig.webcfgSubdocForceReset subscribe retries succeeded 240809-13:51:46.481150 [mod=WIFI, lvl=INFO] [tid=1709] subscribeSubdocForceReset: subscribed to event Device.X_RDK_WebConfig.webcfgSubdocForceReset 240809-13:55:00.879575 [mod=WIFI, lvl=WARN] [tid=1621] Send all pending notifications 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)... 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. |
---|
rdklogctrl CcspPandMSsp LOG.RDK.PAM DEBUG |
---|
Y.CliStatList |
---|