Function dump_backtrace_

Synopsis

#include <include/spdlog/logger.h>

void dump_backtrace_()

Description

No description yet.

Source

Lines 210-219 in include/spdlog/logger-inl.h. Line 353 in include/spdlog/logger.h.

SPDLOG_INLINE void logger::dump_backtrace_()
{
    using details::log_msg;
    if (tracer_.enabled())
    {
        sink_it_(log_msg{name(), level::info, "****************** Backtrace Start ******************"});
        tracer_.foreach_pop([this](const log_msg &msg) { this->sink_it_(msg); });
        sink_it_(log_msg{name(), level::info, "****************** Backtrace End ********************"});
    }
}





Add Discussion

Log in to comment