Fix not defined syslog_logger under windows

This commit is contained in:
gabi 2014-11-12 23:56:13 +02:00
parent 8f24fc5f14
commit 1008f5693d

View File

@ -81,13 +81,17 @@ inline std::shared_ptr<spdlog::logger> spdlog::stderr_logger_st(const std::strin
return create<spdlog::sinks::stderr_sink_st>(logger_name); return create<spdlog::sinks::stderr_sink_st>(logger_name);
} }
#ifdef __linux__
// Create syslog logger // Create syslog logger
inline std::shared_ptr<spdlog::logger> spdlog::syslog_logger(const std::string& logger_name) inline std::shared_ptr<spdlog::logger> spdlog::syslog_logger(const std::string& logger_name)
{ {
return create<spdlog::sinks::syslog_sink>(logger_name); return create<spdlog::sinks::syslog_sink>(logger_name);
} }
#endif
//Create logger with multiple sinks
inline std::shared_ptr<spdlog::logger> spdlog::create(const std::string& logger_name, spdlog::sinks_init_list sinks) inline std::shared_ptr<spdlog::logger> spdlog::create(const std::string& logger_name, spdlog::sinks_init_list sinks)
{ {