FD.io VPP
v21.01.1
Vector Packet Processing
|
Ideally we'd use the boost logger but that is not prevelent in many distros. More...
Data Structures | |
class | entry |
An entry in the log. More... | |
class | handler |
Public Member Functions | |
log_t (handler *h) | |
Construct a logger. More... | |
log_t () | |
const log_level_t & | level () const |
The configured level. More... | |
void | set (const log_level_t &level) |
set the logging level More... | |
void | set (handler *h) |
set a file to receive the logging data More... | |
void | register_handler (handler &h) |
Register a log handler to receive the log output. More... | |
Ideally we'd use the boost logger but that is not prevelent in many distros.
So something simple here instead.
Definition at line 50 of file logger.hpp.
VOM::log_t::log_t | ( | handler * | h | ) |
Construct a logger.
VOM::log_t::log_t | ( | ) |
Definition at line 44 of file logger.cpp.
const log_level_t & VOM::log_t::level | ( | ) | const |
The configured level.
Definition at line 76 of file logger.cpp.
void VOM::log_t::register_handler | ( | handler & | h | ) |
Register a log handler to receive the log output.
void VOM::log_t::set | ( | const log_level_t & | level | ) |
set the logging level
Definition at line 51 of file logger.cpp.
void VOM::log_t::set | ( | handler * | h | ) |
set a file to receive the logging data
Definition at line 57 of file logger.cpp.