Fix syslog_sink and example

This commit is contained in:
Gabi Melman 2024-12-07 11:29:12 +02:00
parent 5cea082bc2
commit a00229eaa5
2 changed files with 2 additions and 1 deletions

View File

@ -233,7 +233,7 @@ void err_handler_example() {
#include "spdlog/sinks/syslog_sink.h"
void syslog_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.");
}
#endif

View File

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