Retrievable logging in modular programing in C++

140 views Asked by At

My task basically was to build a specific module for an existing system. The module works properly, but now I should place log entries inside the code. Since this is only a module of the final system the logging level should be configured outside the program, (which can be solved easily), and the main module should be able to reach the log entries of my module programmatically even if logging into command line or file is disabled. Do you know any existing logging library with this capabilities or that can be easily extended to have them?

1

There are 1 answers

1
Johan On

I think the boost log will fulfill your request. It has a powerful source/sink system that will allow the main module to access our logs even if logging is disabled.

Here's a architectural overview:

Architectural overview of boost log