-
Notifications
You must be signed in to change notification settings - Fork 7
Rebase #45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: support/1.1.0
Are you sure you want to change the base?
Rebase #45
Conversation
Co-authored-by: Saranya <saranya_elango@comcast.com> Co-authored-by: nhanasi <navihansi@gmail.com>
Reason for change: Refactor the RDKLogger component in such a way that, 1. The config file debug.ini is only for the override; 2. Must log even if new module not present in debug.ini 3. The config file must say only the specific level; not individual log levels 4. Default loglevel must be based on LOG.RDK.DEFAULT 5. Remove log4crc overrides Test Procedure: Tested and verified Risks: Medium Signed-off-by: dshett549 <DEEPTHICHANDRASHEKAR_SHETTY@comcast.com> Signed-off-by: Karunakaran A <karunakaran_amirthalingam@cable.comcast.com> Co-authored-by: Karunakaran A <48997923+karuna2git@users.noreply.github.com>
Release of RDKLogger v2.0.0
Reason for change: Refactor the RDKLogger component in such a way that, 1. The config file debug.ini is only for the override; 2. Must log even if new module not present in debug.ini 3. The config file must say only the specific level; not individual log levels 4. Default loglevel must be based on LOG.RDK.DEFAULT 5. Remove log4crc overrides Test Procedure: Tested and verified Risks: Medium Signed-off-by: dshett549 <DEEPTHICHANDRASHEKAR_SHETTY@comcast.com> Signed-off-by: Karunakaran A <karunakaran_amirthalingam@cable.comcast.com> Co-authored-by: Karunakaran A <48997923+karuna2git@users.noreply.github.com>
Release of RDKLogger v2.0.0
* RDKB-60970: RDKLogger OpenSource Migration Reason for change: To fix compilation errors Test Procedure: Tested and verified Risks:Medium Priority:P1 Signed-off-by: dshett549 <DEEPTHICHANDRASHEKAR_SHETTY@comcast.com> Signed-off-by: karunakaran_amirthalingam <karunakaran_amirthalingam@cable.comcast.com>
Release of RDKLogger v2.1.0
* RDKB-60970: RDKLogger OpenSource Migration Reason for change: To fix compilation errors Test Procedure: Tested and verified Risks:Medium Priority:P1 Signed-off-by: dshett549 <DEEPTHICHANDRASHEKAR_SHETTY@comcast.com> Signed-off-by: karunakaran_amirthalingam <karunakaran_amirthalingam@cable.comcast.com>
Release of RDKLogger v2.1.0
* Add new API to convert string log_level to type rdk_logLevel * Resolve warnings from code * Update rdk_dynamic_logger.c --------- Signed-off-by: dshett549 <DEEPTHICHANDRASHEKAR_SHETTY@comcast.com> Signed-off-by: Karunakaran A <Karunakaran_Amirthalingam@cable.comcast.com>
* Add new API to convert string log_level to type rdk_logLevel * Resolve warnings from code * Update rdk_dynamic_logger.c --------- Signed-off-by: dshett549 <DEEPTHICHANDRASHEKAR_SHETTY@comcast.com> Signed-off-by: Karunakaran A <Karunakaran_Amirthalingam@cable.comcast.com>
Release of v2.2.0 Signed-off-by: kamirt573_comcast <karunakaran_amirthalingam@cable.comcast.com>
Release of v2.2.0 Signed-off-by: kamirt573_comcast <karunakaran_amirthalingam@cable.comcast.com>
Reason for change: Add rdk_dbg_* APIs for Backward Compatibility Test Procedure: Verify WiFi Motion Risks: Low Signed-off-by: dshett549 DEEPTHICHANDRASHEKAR_SHETTY@comcast.com Co-authored-by: Deepthi C Shetty <115452109+dshett549@users.noreply.github.com>
* Updated the documentation Signed-off-by: Karunakaran A <karunakaran_amirthalingam@cable.comcast.com>
Reason for change: Add rdk_dbg_* APIs for Backward Compatibility Test Procedure: Verify WiFi Motion Risks: Low Signed-off-by: dshett549 DEEPTHICHANDRASHEKAR_SHETTY@comcast.com Co-authored-by: Deepthi C Shetty <115452109+dshett549@users.noreply.github.com>
* Updated the documentation Signed-off-by: Karunakaran A <karunakaran_amirthalingam@cable.comcast.com>
Release of v2.3.0 Signed-off-by: kamirt573_comcast <karunakaran_amirthalingam@cable.comcast.com>
Deploy cla action
Deploy fossid_integration_stateless_diffscan_target_repo action
Reason for change: Post Code Coverage in the PR workflow Test Procedure: Tested and verified Risks: Low Signed-off-by: Rose Mary Benny RoseMary_Benny@comcast.com
Reason for change: for optimization Test Procedure: Tested and verified Risks:Medium Priority:P1
Update CODEOWNERS
* Rename rdk_logger_milestone.cpp to rdk_logger_milestone.c
* RDKEMW-6710 : RDKLogger - Improve L1 Test coverage Reason for change: RDKLogger - Improve L1 Test coverage Test Procedure: Tested and verified Risks: Low Signed-off-by: RoseMary_Benny@comcast.com <RoseMary_Benny@comcast.com>
Signed-off-by: kamirt573_comcast <karunakaran_amirthalingam@cable.comcast.com>
…he PR as Comment (#37) * RDKEMW-9545 : Post Code Current Coverage & the latest in the PR as Comment Reason for change: Post Code Current Coverage & the latest in the PR as Comment Test Procedure: Tested and verified Risks: Low Signed-off-by: RoseMary_Benny@comcast.com <RoseMary_Benny@comcast.com>
… output type (#41) * RDKEMW-10792: Extending logger_init function to set level, format and output type Reason for change: Extending logger_init function to set level, format and output type Risks:Medium Priority:P1 Signed-off-by: dshett549 <DEEPTHICHANDRASHEKAR_SHETTY@comcast.com> Co-authored-by: Karunakaran A <48997923+karuna2git@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Reason for change: 1. Added support for syslog 2. Added support for systemd_journal 3. Added explicit support for file capture 4. Added different formatting capability 5. Added Dynamic re-configuration of format, output handler Risks:Medium Priority:P1 Signed-off-by: Karunakaran A <karunakaran_amirthalingam@cable.comcast.com>
Signed-off-by: Karunakaran A <karunakaran_amirthalingam@cable.comcast.com>
Reason for change: To support legacy systems that uses AUTOREV - Added milestone log location - Added `comcast_dated` format Risks:Medium Signed-off-by: Karunakaran A <karunakaran_amirthalingam@cable.comcast.com>
Reason for change: To support legacy systems that uses AUTOREV - Added milestone log location - Added `comcast_dated` format - Added legacy MACRO Risks:Medium Signed-off-by: Karunakaran A <karunakaran_amirthalingam@cable.comcast.com>
There was a problem hiding this 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 pull request performs a significant refactoring of the RDK Logger library, modernizing the codebase and improving its architecture.
Changes:
- Refactored logging infrastructure to use log4c more effectively with improved category management and thread safety
- Added extensive unit test coverage including rotation, performance, error handling, and configuration tests
- Removed deprecated dynamic logger test and simplified build configuration
Reviewed changes
Copilot reviewed 70 out of 70 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| utils/rdklogctrl.c | Fixed spelling error "Reciever" → "Receiver", simplified log level validation, removed obsolete module validation |
| utils/rdk_logger_onboard_main.c | Simplified onboard logging by removing intermediate buffer and passing format string directly |
| utils/Makefile.am | Updated build flags, added LOG4C_LIBS, changed all programs to use += operator, fixed library paths |
| unittests/* | Added comprehensive test suites for ext_init, rotation, performance, error handling, and configuration |
| src/rdk_logger_init.c | Major refactor with thread safety (pthread mutex), constructor initialization, and ext_init support |
| src/rdk_debug_priv.c | Complete rewrite of logging infrastructure with new layout/appender system and improved formatting |
| src/rdk_dynamic_logger.c | Simplified dynamic logging with removal of negation support and cleaner log level handling |
| src/rdk_debug.c | Simplified public API, removed complex module number tracking, added level_from_string converter |
| test/* | Removed deprecated dynamic logger test, updated test program with new ext_init API usage |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| wget https://sourceforge.net/projects/log4c/files/log4c/1.2.3/log4c-1.2.3.tar.gz | ||
| tar -xzf log4c-1.2.3.tar.gz | ||
| cd "log4c-1.2.3" | ||
| ./configure "--prefix=${INSTALL_PREFIX}" | ||
| make | ||
| make install |
Copilot
AI
Jan 14, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This build script downloads and executes third-party source code (log4c-1.2.3.tar.gz from SourceForge) without any integrity verification, which exposes the CI/build environment to a supply-chain attack if the remote artifact or distribution channel is compromised. An attacker who can tamper with that tarball could gain code execution in your build environment (with access to build secrets and artifacts) when ./configure, make, and make install are run. To mitigate this, pin the dependency to a specific immutable artifact and verify its integrity before building (for example, by checking a known-good cryptographic hash or signature) instead of trusting the remote download implicitly.
Signed-off-by: Karunakaran A <karunakaran_amirthalingam@cable.comcast.com>
No description provided.