Skip to content

Conversation

@karuna2git
Copy link

RDKEMW-12849: Update to print logs to console

Reason for change: RDKLogger sends the output directly to syslog to gain the performance. But the platform components like rdkfwupdater, rfc, rdm, logupload & crashupload are spun by scripts and console output are redirected to file manually. So, for these components, we have to configure logger to print to console instead syslog.

Once these components become standalone and launched by systemd service independently, this change can be removed to gain performance.

Test Procedure: Ensure logs from above mentioned components are printed.
Risks: None. In the past also output was redirected; so whatever gained in last 2 weeks is not present anymore.
Signed-off-by: Karunakaran A <karunakaran_amirthalingam@cable.comcast.com>

RDKEMW-12849: Update to print logs to console

Reason for change: RDKLogger sends the output directly to syslog to gain the performance. But the platform components like `rdkfwupdater`, `rfc`, `rdm`, `logupload` & `crashupload`  are spun by scripts and console output are redirected to file manually. So, for these components, we have to configure logger to print to console instead syslog.

Once these components become standalone and launched by systemd service independently, this change can be removed to gain performance.

Test Procedure: Ensure logs from above mentioned components are printed.
Risks: None. In the past also output was redirected; so whatever gained in last 2 weeks is not present anymore.

Signed-off-by: Karunakaran A <karunakaran_amirthalingam@cable.comcast.com>
@karuna2git karuna2git requested a review from a team as a code owner January 29, 2026 19:13
Copilot AI review requested due to automatic review settings January 29, 2026 19:13
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the logging initialization for the RDKV CDL log wrapper so that, for certain script-launched components, logs are emitted to the console instead of syslog.

Changes:

  • Replaces the legacy rdk_logger_init(DEBUG_INI_NAME) call with configuration and use of the extended RDK logger API (rdk_logger_ext_config_t / rdk_logger_ext_init).
  • Configures the logger to use RDK_LOG_INFO level, console output (RDKLOG_OUTPUT_CONSOLE), and detailed format with timestamps (RDKLOG_FORMAT_DETAIL_WITH_TS) during initialization.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants