KasperskyOS Community Edition 1.3

LogRR component

The LogRR component provides a system for logging information about program operation. The component includes a server program to which other programs forward messages about their state, and auxiliary output channels used for logging. Messages are sent to the server by using the logrr_clog library (the logrr_cpp library is available for C++), which filters messages according to the log level and sends them to the server. The server relays messages to output channels. An output channel saves log messages to files.

In the SDK, the LogRR program APIs are represented by static and dynamic libraries linked to the programs whose operating information is logged:

  • The logrr_clog library and the header file sysroot-*-kos/include/component/logrr/clog/clog.h are used in C-language programs.
  • The logrr_cpp library and the header file sysroot-*-kos/include/component/logrr/cpp/logger.h are used in C++ programs.

In this section

Adding a log server and output channels to a solution

Getting log entries when running in QEMU

Using macros to send messages to a log

Advanced capabilities when sending messages to a log

Log levels

LogRR program API