From 1008f5693d743a7028b88f8a8496a30b54464b5f Mon Sep 17 00:00:00 2001 From: gabi Date: Wed, 12 Nov 2014 23:56:13 +0200 Subject: [PATCH] Fix not defined syslog_logger under windows --- include/spdlog/details/spdlog_impl.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/spdlog/details/spdlog_impl.h b/include/spdlog/details/spdlog_impl.h index 1fe4566f..127722de 100644 --- a/include/spdlog/details/spdlog_impl.h +++ b/include/spdlog/details/spdlog_impl.h @@ -81,13 +81,17 @@ inline std::shared_ptr spdlog::stderr_logger_st(const std::strin return create(logger_name); } - +#ifdef __linux__ // Create syslog logger inline std::shared_ptr spdlog::syslog_logger(const std::string& logger_name) { return create(logger_name); } +#endif + + +//Create logger with multiple sinks inline std::shared_ptr spdlog::create(const std::string& logger_name, spdlog::sinks_init_list sinks) {