mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
fix includes and spdlog API
This commit is contained in:
parent
1ef0cc768c
commit
d1ecef233d
2 changed files with 4 additions and 1 deletions
|
@ -23,6 +23,7 @@
|
|||
#include <list>
|
||||
#include <algorithm>
|
||||
|
||||
#include <spdlog/spdlog.h>
|
||||
#include <spdlog/sinks/syslog_sink.h>
|
||||
#include <spdlog/sinks/basic_file_sink.h>
|
||||
|
||||
|
@ -113,7 +114,7 @@ void Log::parse(json_t *cfg)
|
|||
}
|
||||
|
||||
if (syslog) {
|
||||
auto sink = std::make_shared<spdlog::sinks::syslog_sink_mt>("villas", LOG_PID, LOG_DAEMON);
|
||||
auto sink = std::make_shared<spdlog::sinks::syslog_sink_mt>("villas", LOG_PID, LOG_DAEMON, true);
|
||||
|
||||
sinks->add_sink(sink);
|
||||
}
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
*********************************************************************************/
|
||||
|
||||
#include <sys/mman.h>
|
||||
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <sstream>
|
||||
|
|
Loading…
Add table
Reference in a new issue