summaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/syslog.h
blob: 25edc6b0c6eb2d93d220a590908c409dceac79a4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef _IPXE_SYSLOG_H
#define _IPXE_SYSLOG_H

/** @file
 *
 * Syslog protocol
 *
 */

FILE_LICENCE ( GPL2_OR_LATER );

/** Syslog server port */
#define SYSLOG_PORT 514

/** Syslog line buffer size
 *
 * This is a policy decision
 */
#define SYSLOG_BUFSIZE 128

/** Syslog facility
 *
 * This is a policy decision
 */
#define SYSLOG_FACILITY 0 /* kernel */

/** Syslog severity
 *
 * This is a policy decision
 */
#define SYSLOG_SEVERITY 6 /* informational */

/** Syslog priority */
#define SYSLOG_PRIORITY( facility, severity ) ( 8 * (facility) + (severity) )

#endif /* _IPXE_SYSLOG_H */