Function syslog_logger_st

Synopsis

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

template <typename Factory = spdlog::synchronous_factory>
std::shared_ptr< logger > syslog_logger_st(const std::string &logger_name, const std::string &syslog_ident="", int syslog_option=0, int syslog_facility=LOG_USER, bool enable_formatting=false)

Description

No description yet.

Source

Lines 103-108 in include/spdlog/sinks/syslog_sink.h.

template<typename Factory = spdlog::synchronous_factory>
inline std::shared_ptr<logger> syslog_logger_st(const std::string &logger_name, const std::string &syslog_ident = "", int syslog_option = 0,
    int syslog_facility = LOG_USER, bool enable_formatting = false)
{
    return Factory::template create<sinks::syslog_sink_st>(logger_name, syslog_ident, syslog_option, syslog_facility, enable_formatting);
}





Add Discussion

Log in to comment