Function should_log

Synopsis

#include <include/spdlog/spdlog.h>

SPDLOG_INLINE bool should_log(level::level_enum lvl)

Description

Determine whether the default logger should log messages with a certain level.

Source

Lines 55-58 in include/spdlog/spdlog-inl.h. Line 77 in include/spdlog/spdlog.h.

SPDLOG_INLINE bool should_log(level::level_enum log_level)
{
    return default_logger_raw()->should_log(log_level);
}





Add Discussion

Log in to comment