Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

RDK supports following tools for making the debugging task easier for developers.

Logging

Presentation of system events, errors and application traces altogether in form of console messages or persistent log files constitutes the logging process in RDK.

...

RDK Logger is responsible for centralizing logging feature which otherwise was done by printf or other similar functionalities. It provides enable/disable log feature as well as defines logging levels thus providing a way to control amount of outgoing log messages. Available as a library, it can be easily plugged into different application to enable them in creating logs in a way that is common amount among the RDK system.

Capabilities

...

A detailed description on the RDK logger component can be found here: <Add reference to RDK Components → RDK Logger>TODO: Add following description in RDK Components → RDK Logger page

...

...

Systemd Journals

systemd has its own logging system called the journal; therefore, running a syslog daemon is no longer required.

  • Journal stores all logs in a specified folder
  • journalctl allows you to filter the output as needed
  • In order to comply with the

...

  • RDK logging formats, journalctl is used to redirect logs to specific module level log .txt files
  • The future plan is to switch to using journald systems-journal-upload to upload logs