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) {