Versions Compared

Key

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

...

  • Abstracts logging client from underlying logging utility.
  • Dynamically enables/disables logging level at run time.
  • Provides logging format that complies with the existing OCAP format (e.g. <timestamp> [mod=*, level=*]).
  • Controls log level independently for each component/module.
  • Enables logging globally via single configuration value.
  • Controls initial log level for each component/module from configuration file (debug.ini) at startup.
  • Prints formatted data to stdout.
  • Separates logs into separate files based on "SEPARATE.LOGFILE.SUPPORT" configuration variable

Architecture


Log4c – Introduction & Terminology:

  • Framework which provides the capability to log messages in a variety of formats to console or local file
  • Configuration - Log4c can be configured using a configuration file
    • log4crc keeps configurations in xml format
    • Configurations can be provided for modules, sub modules etc.
  • Loggers - Named log message destinations which are known to applications.
  • Appenders - Responsible for delivering LogEvents to their destination.
  • Layouts & Filters determine how the message is formatted & filter the messages according to the configuration.

Logging Levels supported by RDK Logger

...