logrr_clog library

The logrr_clog library provides the API for sending messages to the log.

The logrr_clog library is intended for use in C-language programs. Use the logrr_cpp library in C++ programs.

To get access to the library API:

  1. In the CMake build instructions, include the logrr_clog package by running the find_package() command.

    find_package(logrr_clog REQUIRED)

  2. Use the target_link_libraries() command to link your build target to the library. To get the name of the library, use the logrr_clog::logrr_clog target that is provided by the logrr_clog package.

    target_link_libraries (${TARGET_NAME} logrr_clog::logrr_clog)

    The logrr_clog::logrr_clog target links to the dynamic library by default. Also, you can link to the dynamic library explicitly by using the logrr_clog::logrr_clog-shared target. If you want to link to a static library, use the logrr_clog::logrr_clog-static target.

In this Help section

ClogInit(), ClogLog() functions and CLOG macro

LogrrLogLevel enumerated type

Page top