diff --git a/include/spdlog/sinks/syslog_sink.h b/include/spdlog/sinks/syslog_sink.h index 2f4e3fde..b1af2071 100644 --- a/include/spdlog/sinks/syslog_sink.h +++ b/include/spdlog/sinks/syslog_sink.h @@ -5,6 +5,7 @@ #include #include +#include #include #include @@ -92,14 +93,14 @@ using syslog_sink_st = syslog_sink; } // namespace sinks // Create and register a syslog logger -template +template inline std::shared_ptr 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(logger_name, syslog_ident, syslog_option, syslog_facility, enable_formatting); } -template +template inline std::shared_ptr 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) {