idea about how the logging interface could look like

This commit is contained in:
Florian Lüke 2024-12-07 18:34:27 +01:00
parent 1d5a957043
commit 1a20dd8097

View file

@ -0,0 +1,23 @@
#ifndef C3F17743_0B87_45E4_B864_8BE35775019D
#define C3F17743_0B87_45E4_B864_8BE35775019D
#include <string>
#include <vector>
// Public interface to the internal logging system. Not a logging utility library.
namespace mesytec::mnode
{
// Levels are: trace, debug, info, warning, error, critical, off
void set_log_level(const std::string &level);
void set_log_level(const std::string &logger_name, const std::string &level);
// Only the names of loggers that have been created at runtime are returned.
// It's not a static result.
std::vector<std::string> get_logger_names();
}
#endif /* C3F17743_0B87_45E4_B864_8BE35775019D */