Function log_it_

Synopsis

#include <include/spdlog/logger.h>

void log_it_(const details::log_msg &log_msg, bool log_enabled, bool traceback_enabled)

Description

protected methods

log the given message (if the given log level is high enough), and save backtrace (if backtrace is enabled).

Source

Lines 166-176 in include/spdlog/logger-inl.h. Line 350 in include/spdlog/logger.h.

SPDLOG_INLINE void logger::log_it_(const spdlog::details::log_msg &log_msg, bool log_enabled, bool traceback_enabled)
{
    if (log_enabled)
    {
        sink_it_(log_msg);
    }
    if (traceback_enabled)
    {
        tracer_.push_back(log_msg);
    }
}





Add Discussion

Log in to comment