mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-25 10:01:33 +08:00
Update syslog_sink.h
This commit is contained in:
parent
b20ffa7369
commit
b9726ba66d
@ -93,14 +93,14 @@ using syslog_sink_st = syslog_sink<details::null_mutex>;
|
||||
} // namespace sinks
|
||||
|
||||
// Create and register a syslog logger
|
||||
template<typename Factory = synchronous_factory>
|
||||
template<typename Factory = spdlog::synchronous_factory>
|
||||
inline std::shared_ptr<logger> syslog_logger_mt(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_mt>(logger_name, syslog_ident, syslog_option, syslog_facility, enable_formatting);
|
||||
}
|
||||
|
||||
template<typename Factory = synchronous_factory>
|
||||
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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user