Function null_logger_mt

Synopsis

#include <include/spdlog/sinks/null_sink.h>

template <typename Factory = spdlog::synchronous_factory>
std::shared_ptr< logger > null_logger_mt(const std::string &logger_name)

Description

No description yet.

Source

Lines 28-34 in include/spdlog/sinks/null_sink.h.

template<typename Factory = spdlog::synchronous_factory>
inline std::shared_ptr<logger> null_logger_mt(const std::string &logger_name)
{
    auto null_logger = Factory::template create<sinks::null_sink_mt>(logger_name);
    null_logger->set_level(level::off);
    return null_logger;
}





Add Discussion

Log in to comment