|
iPXE
|
Syslog protocol. More...
#include <syslog.h>Go to the source code of this file.
Macros | |
| #define | SYSLOG_PORT 514 |
| Syslog server port. | |
| #define | SYSLOG_BUFSIZE 128 |
| Syslog line buffer size. | |
| #define | SYSLOG_DEFAULT_FACILITY 0 /* kernel */ |
| Syslog default facility. | |
| #define | SYSLOG_DEFAULT_SEVERITY LOG_INFO |
| Syslog default severity. | |
| #define | SYSLOG_PRIORITY(facility, severity) |
| Syslog priority. | |
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| FILE_SECBOOT (PERMITTED) | |
| int | syslog_send (struct interface *xfer, unsigned int severity, const char *message, const char *terminator) |
| Transmit formatted syslog message. | |
Syslog protocol.
Definition in file syslog.h.
| #define SYSLOG_PORT 514 |
| #define SYSLOG_BUFSIZE 128 |
| #define SYSLOG_DEFAULT_FACILITY 0 /* kernel */ |
Syslog default facility.
This is a policy decision
Definition at line 28 of file syslog.h.
Referenced by syslog_send().
| #define SYSLOG_DEFAULT_SEVERITY LOG_INFO |
Syslog default severity.
This is a policy decision
Definition at line 34 of file syslog.h.
Referenced by syslog_handle_priority(), and syslogs_handle_priority().
| #define SYSLOG_PRIORITY | ( | facility, | |
| severity ) |
Syslog priority.
Definition at line 37 of file syslog.h.
Referenced by syslog_send().
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
| FILE_SECBOOT | ( | PERMITTED | ) |
|
extern |
Transmit formatted syslog message.
| xfer | Data transfer interface |
| severity | Severity |
| message | Message |
| terminator | Message terminator |
| rc | Return status code |
Definition at line 99 of file syslog.c.
References message, SYSLOG_DEFAULT_FACILITY, syslog_domain, syslog_hostname, SYSLOG_PRIORITY, terminator, and xfer_printf().
Referenced by syslog_putchar(), and syslogs_putchar().