|
iPXE
|
System logger. More...
Go to the source code of this file.
Macros | |
| #define | LOG_EMERG 0 |
| Emergency: system is unusable. More... | |
| #define | LOG_ALERT 1 |
| Alert: action must be taken immediately. More... | |
| #define | LOG_CRIT 2 |
| Critical: critical conditions. More... | |
| #define | LOG_ERR 3 |
| Error: error conditions. More... | |
| #define | LOG_WARNING 4 |
| Warning: warning conditions. More... | |
| #define | LOG_NOTICE 5 |
| Notice: normal but significant conditions. More... | |
| #define | LOG_INFO 6 |
| Informational: informational messages. More... | |
| #define | LOG_DEBUG 7 |
| Debug: debug-level messages. More... | |
| #define | LOG_NONE -1 |
| Do not log any messages. More... | |
| #define | LOG_ALL LOG_DEBUG |
| Log all messages. More... | |
| #define | SYSLOG_SET_PRIORITY(priority) "\033[" #priority "p" |
| ANSI private escape sequence to set syslog priority. More... | |
| #define | SYSLOG_CLEAR_PRIORITY "\033[p" |
| ANSI private escape sequence to clear syslog priority. More... | |
| #define | vsyslog(priority, fmt, args) |
| Write message to system log. More... | |
| #define | syslog(priority, fmt, ...) |
| Write message to system log. More... | |
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| void | log_vprintf (const char *fmt, va_list args) |
| Write message to system log. More... | |
| void | __attribute__ ((format(printf, 1, 2))) log_printf(const char *fmt |
System logger.
Definition in file syslog.h.
| #define SYSLOG_CLEAR_PRIORITY "\033[p" |
Write message to system log.
| priority | Message priority |
| fmt | Format string |
| ... | Arguments |
Write message to system log.
| priority | Message priority |
| fmt | Format string |
| ... | Arguments |
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
| void log_vprintf | ( | const char * | fmt, |
| va_list | args | ||
| ) |
Write message to system log.
| fmt | Format string |
| args | Arguments |
Definition at line 42 of file log.c.
References console_set_usage(), CONSOLE_USAGE_LOG, fmt, saved_usage, and vprintf().
Referenced by log_printf().
| void __attribute__ | ( | (format(printf, 1, 2)) | ) | const |
1.8.15