25 template<
typename Mutex>
42 ::openlog(
ident_.empty() ?
nullptr :
ident_.c_str(), syslog_option, syslog_facility);
72 return priorities_[
static_cast<size_t>(msg.
level)];
81 template<
typename Factory = default_factory>
83 const std::string &logger_name,
const std::string &syslog_ident =
"",
int syslog_option = 0,
int syslog_facility = (1 << 3))
85 return Factory::template create<sinks::syslog_sink_mt>(logger_name, syslog_ident, syslog_option, syslog_facility);
88 template<
typename Factory = default_factory>
90 const std::string &logger_name,
const std::string &syslog_ident =
"",
int syslog_option = 0,
int syslog_facility = (1 << 3))
92 return Factory::template create<sinks::syslog_sink_st>(logger_name, syslog_ident, syslog_option, syslog_facility);
#define LOG_DEBUG(stream)
void msg(const char *fmt,...)
syslog_sink & operator=(const syslog_sink &)=delete
std::array< int, 7 > priorities_
int syslog_prio_from_level(const details::log_msg &msg) const
void sink_it_(const details::log_msg &msg) override
std::shared_ptr< logger > syslog_logger_st(const std::string &logger_name, const std::string &syslog_ident="", int syslog_option=0, int syslog_facility=(1<< 3))
std::shared_ptr< logger > syslog_logger_mt(const std::string &logger_name, const std::string &syslog_ident="", int syslog_option=0, int syslog_facility=(1<< 3))
const string_view_t payload
std::string to_string(ModuleType const mt)
syslog_sink(std::string ident="", int syslog_option=0, int syslog_facility=LOG_USER)