idea about how the logging interface could look like
This commit is contained in:
parent
1d5a957043
commit
1a20dd8097
1 changed files with 23 additions and 0 deletions
23
include/mesytec-mnode/mnode_logging.h
Normal file
23
include/mesytec-mnode/mnode_logging.h
Normal 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 */
|
Loading…
Reference in a new issue