Function should_flush_

Synopsis

#include <include/spdlog/logger.h>

bool should_flush_(const details::log_msg &msg)

Description

No description yet.

Source

Lines 221-225 in include/spdlog/logger-inl.h. Line 354 in include/spdlog/logger.h.

SPDLOG_INLINE bool logger::should_flush_(const details::log_msg &msg)
{
    auto flush_level = flush_level_.load(std::memory_order_relaxed);
    return (msg.level >= flush_level) && (msg.level != level::off);
}





Add Discussion

Log in to comment