vsyslog()

Control the syslogd system log (varargs)

Synopsis:

#include <syslog.h>
#include <stdarg.h>

void vsyslog( int priority,
              const char *message, 
              va_list args );

Arguments:

priority
The priority of the message; see "Message levels," in the documentation for syslog().
message
The message that you want to write. This message is identical to a printf()-format string, except that %m is replaced by the current error message (as denoted by the global variable errno). A trailing newline is added if none is present.
args
A variable-argument list of the additional arguments, which you must have initialized with the va_start() macro.

Library:

libc

Use the -l c option to qcc to link against this library. This library is usually included automatically.

Description:

The vsyslog() function writes message to the system message logger. The message is then written to the system console, log files, and logged-in users, or forwarded to other machines as appropriate. (See the syslogd command.)

This function is a "varargs" version of syslog().

Classification:

Unix

Safety:  
Cancellation point Yes
Interrupt handler No
Signal handler No
Thread No