|This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.|
Control system log (varargs)
#include <syslog.h> #include <stdarg.h> void vsyslog( int priority, const char *message, va_list args );
- The priority of the message; see “Message levels,” in the documentation for syslog().
- 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.
- A variable-argument list of the additional arguments, which you must have initialized with the va_start() macro.
Use the -l c option to qcc to link against this library. This library is usually included automatically.
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().