From bec6919587a7ebcb3d4e392689f354c372eef195 Mon Sep 17 00:00:00 2001 From: Alexandr Dubovikov Date: Mon, 4 Dec 2017 13:03:40 +0100 Subject: [PATCH] added facilty for syslog --- include/spdlog/details/spdlog_impl.h | 4 ++-- include/spdlog/spdlog.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/spdlog/details/spdlog_impl.h b/include/spdlog/details/spdlog_impl.h index 7b9151fc..17d4a48c 100644 --- a/include/spdlog/details/spdlog_impl.h +++ b/include/spdlog/details/spdlog_impl.h @@ -162,9 +162,9 @@ inline std::shared_ptr spdlog::stderr_color_st(const std::string #ifdef SPDLOG_ENABLE_SYSLOG // Create syslog logger -inline std::shared_ptr spdlog::syslog_logger(const std::string& logger_name, const std::string& syslog_ident, int syslog_option) +inline std::shared_ptr spdlog::syslog_logger(const std::string& logger_name, const std::string& syslog_ident, int syslog_option, int syslog_facility) { - return create(logger_name, syslog_ident, syslog_option); + return create(logger_name, syslog_ident, syslog_option, syslog_facility); } #endif diff --git a/include/spdlog/spdlog.h b/include/spdlog/spdlog.h index 0454226b..7121c31e 100644 --- a/include/spdlog/spdlog.h +++ b/include/spdlog/spdlog.h @@ -106,7 +106,7 @@ std::shared_ptr stderr_color_st(const std::string& logger_name); // Create and register a syslog logger // #ifdef SPDLOG_ENABLE_SYSLOG -std::shared_ptr syslog_logger(const std::string& logger_name, const std::string& ident = "", int syslog_option = 0); +std::shared_ptr syslog_logger(const std::string& logger_name, const std::string& ident = "", int syslog_option = 0, int syslog_facilty = (1<<3)); #endif #if defined(__ANDROID__)