2
0
mirror of https://github.com/xcat2/xNBA.git synced 2026-03-25 07:49:18 +00:00
Files
xNBA/src/include/ipxe/syslog.h
Michael Brown 3ff7927d2f [syslog] Pass internal syslog() priority through to syslog console
Use a private ANSI escape sequence to convey the priority of an
internal syslog() message through to the syslog server.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
2012-03-26 21:58:58 +01:00

39 lines
632 B
C

#ifndef _IPXE_SYSLOG_H
#define _IPXE_SYSLOG_H
/** @file
*
* Syslog protocol
*
*/
FILE_LICENCE ( GPL2_OR_LATER );
#include <syslog.h>
/** Syslog server port */
#define SYSLOG_PORT 514
/** Syslog line buffer size
*
* This is a policy decision
*/
#define SYSLOG_BUFSIZE 128
/** Syslog default facility
*
* This is a policy decision
*/
#define SYSLOG_DEFAULT_FACILITY 0 /* kernel */
/** Syslog default severity
*
* This is a policy decision
*/
#define SYSLOG_DEFAULT_SEVERITY LOG_INFO
/** Syslog priority */
#define SYSLOG_PRIORITY( facility, severity ) ( 8 * (facility) + (severity) )
#endif /* _IPXE_SYSLOG_H */