ultrix man page for syslog

Query: syslog

OS: ultrix

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

syslog(3)						     Library Functions Manual							 syslog(3)

Name
       syslog, openlog, closelog - control system log

Syntax
       #include <syslog.h>

       openlog(ident, logstat)
       char *ident;

       void syslog(priority, message, parameters ... )
       char *message;

       void closelog()

Description
       The  subroutine	arranges  to  write  the message onto the system log maintained by The message is tagged with priority and it looks like a
       string except that %m is replaced by the current error message (collected from A trailing new line is added if  needed.	 This  message	is
       read by and output to the system console or files as appropriate.  The maximum number of parameters is 5.

       If  special  processing is needed, can be called to initialize the log file.  Parameters are ident which is prepended to every message, and
       logstat which is a bit field indicating special status; current values are:

       LOG_PID	log the process id with each message; useful for identifying daemons.

       The returns zero on success.  If it cannot open the file it writes on instead and returns -1.

       The can be used to close the log file.

Examples
       syslog(LOG_SALERT, "who: internal error 23");

       openlog("serverftp", LOG_PID);
       syslog(LOG_INFO, "Connection from host %d", CallingHost);

See Also
       syslog(8)

																	 syslog(3)
Related Man Pages
syslog(3c) - opensolaris
setlogmask(3) - bsd
syslog(3c) - sunos
closelog(3c) - sunos
setlogmask(3c) - sunos
Similar Topics in the Unix Linux Community
/var/log/syslog
syslog not coming up
syslog is not getting written
Cron won't restart rsyslog
AIX Syslog where the hostname sit