mirror of
https://github.com/xcat2/xNBA.git
synced 2026-03-25 15:53:29 +00:00
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>
39 lines
632 B
C
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 */
|