![]() |
![]() |
![]() |
Send a message to the system logger
#include <stdio.h> #include <sys/slog.h> int slogb( int code, int severity, void * data, int size );
libc
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 int's, respectively.
The arguments for slogb() are as follows:
Any value from the Errors section in MsgSend(), as well as:
See slogf().
Safety: | |
---|---|
Cancellation point | Yes |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |
slogger, sloginfo in the Utilities reference
![]() |
![]() |
![]() |