Syslog API void openlog(char* ident, int option, int facility); void syslog(int priority, char* format, ... ); void closelog(void); There exists a logger(1) command for interactive logging from the shell. man syslog for further information