Function sink_it_

Synopsis

#include <include/spdlog/logger.h>

void sink_it_(const details::log_msg &msg)

Description

No description yet.

Source

Lines 178-196 in include/spdlog/logger-inl.h. Line 351 in include/spdlog/logger.h.

SPDLOG_INLINE void logger::sink_it_(const details::log_msg &msg)
{
    for (auto &sink : sinks_)
    {
        if (sink->should_log(msg.level))
        {
            SPDLOG_TRY
            {
                sink->log(msg);
            }
            SPDLOG_LOGGER_CATCH()
        }
    }

    if (should_flush_(msg))
    {
        flush_();
    }
}





Add Discussion

Log in to comment