Skip to content

Commit

Permalink
Fix not defined syslog_logger under windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabi120 committed Nov 12, 2014
1 parent 8f24fc5 commit 1008f56
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion include/spdlog/details/spdlog_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}


#ifdef __linux__
// Create syslog logger
inline std::shared_ptr<spdlog::logger> spdlog::syslog_logger(const std::string& 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)
{
Expand Down

0 comments on commit 1008f56

Please sign in to comment.