OpenCBDC Transaction Processor
|
Data Structures | |
class | log |
Generalized logging class. More... | |
class | null_stream |
No-op stream destination for log output. More... | |
Enumerations | |
enum class | log_level : uint8_t { trace , debug , info , warn , error , fatal } |
Set of possible log levels. More... | |
Functions | |
auto | parse_loglevel (const std::string &level) -> std::optional< log_level > |
Parses a capitalized string into a log level. | |
|
strong |
Set of possible log levels.
Used to configure log. Each level implies that the logger should output messages at that level or greater.
Definition at line 34 of file logging.hpp.
auto cbdc::logging::parse_loglevel | ( | const std::string & | level | ) | -> std::optional< log_level > |
Parses a capitalized string into a log level.
Possible input values: TRACE, DEBUG, INFO, WARN, ERROR, and FATAL.
level | string corresponding to a log level. |
Definition at line 70 of file logging.cpp.
References debug, error, fatal, info, trace, and warn.
Referenced by cbdc::config::parser::get_loglevel(), and cbdc::parsec::read_config().