closelog man page on Ultrix

Man page or keyword search:  
man Server   3690 pages
apropos Keyword Search (all sections)
Output format
Ultrix logo
[printable version]

syslog(3)							     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 main‐
       tained by The message is tagged with  priority  and  it	looks  like  a
       string  except  that  %m is replaced by the current error message (col‐
       lected 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)
[top]

List of man pages available for Ultrix

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
...................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net