Optional arguments for syslog_logger factory.

This commit is contained in:
fooinha
2014-12-18 15:47:43 +00:00
parent 309fca8a72
commit 375b88c191
4 changed files with 32 additions and 20 deletions

View File

@@ -87,11 +87,10 @@ inline std::shared_ptr<spdlog::logger> spdlog::stderr_logger_st(const std::strin
#ifdef __linux__
// Create syslog logger
inline std::shared_ptr<spdlog::logger> spdlog::syslog_logger(const std::string& logger_name, const std::string& ident, int option , const std::string & facility)
inline std::shared_ptr<spdlog::logger> spdlog::syslog_logger(const std::string& logger_name, const std::string& ident, int option, const std::string &facility)
{
return create<spdlog::sinks::syslog_sink>(logger_name, ident, option, facility);
}
#endif