10        : m_log(std::move(log)) {}
 
 
   13                                     const char* source_file,
 
   14                                     const char* func_name,
 
   16                                     const std::string& log_line) {
 
   17        const auto enum_level = 
static_cast<log_level>(level);
 
   20                m_log->trace(source_file,
 
   27                m_log->debug(source_file,
 
   34                m_log->info(source_file,
 
   41                m_log->warn(source_file,
 
   51                m_log->error(source_file,
 
 
   61        const auto ll = m_log->get_log_level();
 
   83        return static_cast<int>(level);
 
 
 
auto get_level() -> int override
Return the log level of the underlying logger.
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.
@ trace
Fine-grained, fully verbose operating information.
@ warn
Potentially unintended, unexpected, or undesirable behavior.
@ debug
Diagnostic information.
@ info
General information about the state of the system.
@ error
Serious, critical errors.
@ fatal
Only fatal errors.
log_level
Map from NuRaft-internal log levels to names.