syslog - log a message
#include <syslog.h> void syslog(int priority, const char *message, ... /* argument */);
Refer to closelog().