XSI System Logging option group.
More...
|
| 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_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.
|
| |
XSI System Logging option group.
◆ LOG_CONS
Log to the system console if the logger is unavailable.
Definition at line 25 of file syslog.h.
◆ LOG_NDELAY
Open the connection to the logger immediately.
Definition at line 27 of file syslog.h.
◆ LOG_NOWAIT
Do not wait for child processes created by logging.
Definition at line 31 of file syslog.h.
◆ LOG_ODELAY
Delay the connection until the first message is sent.
Definition at line 29 of file syslog.h.
◆ LOG_PERROR
Also write messages to stderr.
Definition at line 33 of file syslog.h.
◆ LOG_PID
Include the process ID in each log message.
Definition at line 23 of file syslog.h.
◆ closelog()
◆ openlog()
| void openlog |
( |
const char * |
ident, |
|
|
int |
logopt, |
|
|
int |
facility |
|
) |
| |
◆ setlogmask()
| int setlogmask |
( |
int |
maskpri | ) |
|
◆ syslog()
| void syslog |
( |
int |
priority, |
|
|
const char * |
message, |
|
|
|
... |
|
) |
| |
◆ vsyslog()
| void vsyslog |
( |
int |
priority, |
|
|
const char * |
format, |
|
|
va_list |
ap |
|
) |
| |