Fix syslog_sink and example

pull/3309/head
Gabi Melman 9 months ago
parent 5cea082bc2
commit a00229eaa5

@ -233,7 +233,7 @@ void err_handler_example() {
#include "spdlog/sinks/syslog_sink.h" #include "spdlog/sinks/syslog_sink.h"
void syslog_example() { void syslog_example() {
std::string ident = "spdlog-example"; std::string ident = "spdlog-example";
auto syslog_logger = spdlog::create<syslog_sink_mt>("syslog", ident, 0); auto syslog_logger = spdlog::create<syslog_sink_mt>("syslog", ident, LOG_PID);
syslog_logger->warn("This is warning that will end up in syslog."); syslog_logger->warn("This is warning that will end up in syslog.");
} }
#endif #endif

@ -9,6 +9,7 @@
#include <array> #include <array>
#include <string> #include <string>
#include <mutex>
namespace spdlog { namespace spdlog {
namespace sinks { namespace sinks {

Loading…
Cancel
Save