Send a message to the system logger
#include <stdio.h> #include <sys/slog.h> int slogi( int code, int severity, int nargs, ... );
The additional arguments are the integers that you want to write.
Use the -l c option to qcc to link against this library. This library is usually included automatically.
|This function is in libc.a, but not in libc.so (in order to save space).|
The slog*() functions send log messages to the system logger, slogger. To send formatted messages, use slogf(). If you have programs that scan log files for specified codes, you can use slogb() or slogi() to send a block of structures or ints, respectively.
Any value from the Errors section in MsgSend(), as well as:
slogb(), slogf(), slogi(), vslogf()
slogger, sloginfo in the Utilities Reference