NAME | SYNOPSIS | FEATURES | DESCRIPTION | ATTRIBUTES | NOTES | SEE ALSO
#include <log/chLog.h>void sysLog(char *format, ... /* arg */);
LOG
The sysLog() call logs a message in the kernel's cyclical buffer. The syntax of sysLog() is similar to that of printf() with the restriction that the only conversion specifications supported are "%s", "%d", and "%c".
The formatted string is truncated to SYSLOG_MAX_LINE characters, as defined in <log/chLog.h>.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
Important actors related to system administration, for example pppstart.r, slattach.r and chat.r, use sysLog().
The system administrator can view lines in the system log using cs(1CC) and chls(1CC), as shown in the following examples:
host% chls -ll nblines |
host% rsh target arun /bin/cs -ll nblines |
where nblines is the number of lines to display counting from the end of the system log, and target is the target system hostname.
NAME | SYNOPSIS | FEATURES | DESCRIPTION | ATTRIBUTES | NOTES | SEE ALSO