2 * Copyright 2003-2015, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 #ifndef SYSLOG_DAEMON_H
6 #define SYSLOG_DAEMON_H
12 #define B_SYSTEM_LOGGER_SIGNATURE "application/x-vnd.Haiku-SystemLogger"
14 #define SYSLOG_MESSAGE '_Syl'
15 #define SYSLOG_ADD_LISTENER 'aSyl'
16 #define SYSLOG_REMOVE_LISTENER 'rSyl'
19 // This message is sent from both, the POSIX syslog API and the kernel's
20 // dprintf() logging facility if logging to syslog was enabled.
22 struct syslog_message
{
27 char ident
[B_OS_NAME_LENGTH
];
31 #define SYSLOG_MESSAGE_BUFFER_SIZE 8192
32 #define SYSLOG_MAX_MESSAGE_LENGTH (SYSLOG_MESSAGE_BUFFER_SIZE - sizeof(struct syslog_message))
34 #define SYSLOG_PRIORITY(options) ((options) & 0x7)
35 #define SYSLOG_FACILITY(options) ((options) & 0x03f8)
36 #define SYSLOG_FACILITY_INDEX(options) (SYSLOG_FACILITY(options) >> 3)
38 #endif /* SYSLOG_DAEMON_H */