OpenCBDC Transaction Processor
|
nuraft::logger implementation using logging::log. More...
#include <console_logger.hpp>
Public Member Functions | |
console_logger (std::shared_ptr< logging::log > log) | |
Constructor. | |
void | put_details (int level, const char *source_file, const char *func_name, size_t line_number, const std::string &log_line) override |
Write a log message to the log. | |
auto | get_level () -> int override |
Return the log level of the underlying logger. | |
nuraft::logger implementation using logging::log.
Definition at line 25 of file console_logger.hpp.
|
explicit |
|
nodiscardoverride |
Return the log level of the underlying logger.
Definition at line 60 of file console_logger.cpp.
References cbdc::logging::debug, cbdc::raft::debug, cbdc::logging::error, cbdc::raft::error, cbdc::logging::fatal, cbdc::logging::info, cbdc::raft::info, cbdc::logging::trace, cbdc::raft::trace, cbdc::logging::warn, and cbdc::raft::warn.
|
override |
Write a log message to the log.
level | severity of the message. |
source_file | source file where the message originates. |
func_name | function name where the message originates. |
line_number | line number in the source file where the message originates. |
log_line | log message. |
Definition at line 12 of file console_logger.cpp.
References cbdc::raft::debug, cbdc::raft::error, cbdc::raft::fatal, cbdc::raft::info, cbdc::raft::trace, and cbdc::raft::warn.