Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ syslog(5) — Reliant UNIX 5.44c4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

syslogd(1M)

syslog(3C)

syslog(5)                                                         syslog(5)

NAME
     syslog - definitions for system error logging

SYNOPSIS
     #include <syslog.h>

DESCRIPTION
     The <syslog.h> header defines the following symbolic constants, zero
     or more of which may be OR-ed together to form the logopt option of
     openlog():

     LOGPID         Log the process ID with each message.
     LOGCONS        Log to the system console on error.
     LOGNDELAY      Connect to syslog daemon immediately.
     LOGODELAY      Delay open until syslog() is called.
     LOGNOWAIT      Don't wait for child processes.

     The following symbolic constants are defined as possible values of the
     facility argument to openlog():

     LOGKERN        Reserved for message generated by the system.
     LOGUSER        Message generated by a process.
     LOGMAIL        Reserved for message generated by mail system.
     LOGNEWS        Reserved for message generated by news system.
     LOGUUCP        Reserved for message generated by UUCP system.
     LOGDAEMON      Reserved for message generated by system daemon.
     LOGAUTH        Reserved for message generated by authorization daemon.
     LOGCRON        Reserved for message generated by the clock daemon
                     [see cron(1M)].
     LOGLPR         Reserved for message generated by printer system.
     LOGLOCAL0      Reserved for local use.
     LOGLOCAL1      Reserved for local use.
     LOGLOCAL2      Reserved for local use.
     LOGLOCAL3      Reserved for local use.
     LOGLOCAL4      Reserved for local use.
     LOGLOCAL5      Reserved for local use.
     LOGLOCAL6      Reserved for local use.
     LOGLOCAL7      Reserved for local use.

     The following are declared as macros for constructing the maskpri
     argument to setlogmask(). The following macros expand to an expression
     of type int when the argument pri is an expression of type int:

     LOGMASK(pri)   A mask for priority pri.
     LOGUPTO(pri)   A mask for all priorities through pri.










Page 1                       Reliant UNIX 5.44                Printed 11/98

syslog(5)                                                         syslog(5)

     The following constants are defined as possible values for the
     priority argument of syslog():

     LOGEMERG       A panic condition was reported to all processes.
     LOGALERT       A condition that should be corrected immediately.
     LOGCRIT        A critical condition.
     LOGERR         An error message.
     LOGWARNING     A warning message.
     LOGNOTICE      A condition requiring special handling.
     LOGINFO        A general information message.
     LOGDEBUG       A message useful for debugging programs.

     The following are declared as functions and may also be defined as
     macros:

     void  closelog(void);
     void  openlog(const char *id, int logopt, int facility);
     int   setlogmask(int maskpri);
     void  syslog(int priority, const char *format, ...);

SEE ALSO
     syslogd(1M), syslog(3C).
































Page 2                       Reliant UNIX 5.44                Printed 11/98

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026