vsyslog()
QNX SDP8.0C Library ReferenceAPIDeveloper
Write a message to the slogger2 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. (See the slogger2 command.)
This function is a varargs
version of
syslog().
Classification:
Safety: | |
---|---|
Cancellation point | Yes |
Signal handler | No |
Thread | No |
Page updated: