Function enable_backtrace

Synopsis

#include <include/spdlog/logger.h>

void enable_backtrace(size_t n_messages)

Description

create new backtrace sink and move to it all our child sinks

backtrace support. efficiently store all debug/trace messages in a circular buffer until needed for debugging.

Source

Lines 108-111 in include/spdlog/logger-inl.h. Line 300 in include/spdlog/logger.h.

SPDLOG_INLINE void logger::enable_backtrace(size_t n_messages)
{
    tracer_.enable(n_messages);
}





Add Discussion

Log in to comment