Function should_log

Synopsis

#include <include/spdlog/logger.h>

bool should_log(level::level_enum msg_level) const

Description

return true logging is enabled for the given level.

Source

Lines 275-278 in include/spdlog/logger.h.

bool should_log(level::level_enum msg_level) const
{
    return msg_level >= level_.load(std::memory_order_relaxed);
}





Add Discussion

Log in to comment