11 #if defined(unix) || defined(__unix) || defined(__unix__)
19 #if defined(unix) || defined(__unix) || defined(__unix__)
20 openlog(
nullptr, LOG_NDELAY | LOG_PID, LOG_USER);
26 #if defined(unix) || defined(__unix) || defined(__unix__)
34 if (record.
raw.empty())
37 #if defined(unix) || defined(__unix) || defined(__unix__)
49 priority = LOG_WARNING;
63 syslog(priority,
"%.*s", (
int)record.
raw.size() - 1, (
char*)record.
raw.data());
Level level
Level of the logging record.
std::vector< uint8_t > raw
Record content after layout.
void AppendRecord(Record &record) override
Append the given logging record.
virtual ~SyslogAppender()
C++ Logging project definitions.
Syslog appender definition.