![]() |
posix-next API 0.1.0
Out-of-tree Zephyr POSIX module
|
POSIX system logging (<syslog.h>) More...
#include <stdarg.h>
Go to the source code of this file.
Macros | |
openlog() option flags | |
| #define | LOG_PID 1 |
| Include the process ID in each log message. | |
| #define | LOG_CONS 2 |
| Log to the system console if the logger is unavailable. | |
| #define | LOG_NDELAY 4 |
| Open the connection to the logger immediately. | |
| #define | LOG_ODELAY 8 |
| Delay the connection until the first message is sent. | |
| #define | LOG_NOWAIT 16 |
| Do not wait for child processes created by logging. | |
| #define | LOG_PERROR 32 |
| Also write messages to stderr. | |
openlog() facility codes | |
| #define | LOG_KERN 0 |
| Kernel messages. | |
| #define | LOG_USER 1 |
| Generic user-level messages. | |
| #define | LOG_MAIL 2 |
| Mail system messages. | |
| #define | LOG_NEWS 3 |
| News subsystem messages. | |
| #define | LOG_UUCP 4 |
| UUCP subsystem messages. | |
| #define | LOG_DAEMON 5 |
| System daemon messages. | |
| #define | LOG_AUTH 6 |
| Security/authentication messages. | |
| #define | LOG_CRON 7 |
| Clock daemon messages. | |
| #define | LOG_LPR 8 |
| Printer subsystem messages. | |
| #define | LOG_LOCAL0 9 |
| Reserved for local use (facility 0). | |
| #define | LOG_LOCAL1 10 |
| Reserved for local use (facility 1). | |
| #define | LOG_LOCAL2 11 |
| Reserved for local use (facility 2). | |
| #define | LOG_LOCAL3 12 |
| Reserved for local use (facility 3). | |
| #define | LOG_LOCAL4 13 |
| Reserved for local use (facility 4). | |
| #define | LOG_LOCAL5 14 |
| Reserved for local use (facility 5). | |
| #define | LOG_LOCAL6 15 |
| Reserved for local use (facility 6). | |
| #define | LOG_LOCAL7 16 |
| Reserved for local use (facility 7). | |
syslog() priority codes | |
| #define | LOG_EMERG 0 |
| System is unusable. | |
| #define | LOG_ALERT 1 |
| Action must be taken immediately. | |
| #define | LOG_CRIT 2 |
| Critical conditions. | |
| #define | LOG_ERR 3 |
| Error conditions. | |
| #define | LOG_WARNING 4 |
| Warning conditions. | |
| #define | LOG_NOTICE 5 |
| Normal but significant condition. | |
| #define | LOG_INFO 6 |
| Informational message. | |
| #define | LOG_DEBUG 7 |
| Debug-level message. | |
| #define | LOG_MASK(mask) ((mask) & BIT_MASK(LOG_DEBUG + 1)) |
| Generate a log mask for the given priority. | |
| void | closelog (void) |
| Close the connection to the system logger. | |
| void | openlog (const char *ident, int logopt, int facility) |
| Open a connection to the system logger. | |
| int | setlogmask (int maskpri) |
| Set the log priority mask. | |
| void | syslog (int priority, const char *message,...) |
| Write a message to the system logger. | |
| void | vsyslog (int priority, const char *format, va_list ap) |
| Write a message to the system logger (va_list form). | |
| #define LOG_MASK | ( | mask | ) | ((mask) & BIT_MASK(LOG_DEBUG + 1)) |