1syslog.h(0P)               POSIX Programmer's Manual              syslog.h(0P)
2
3
4

PROLOG

6       This  manual  page is part of the POSIX Programmer's Manual.  The Linux
7       implementation of this interface may differ (consult the  corresponding
8       Linux  manual page for details of Linux behavior), or the interface may
9       not be implemented on Linux.
10

NAME

12       syslog.h — definitions for system error logging
13

SYNOPSIS

15       #include <syslog.h>
16

DESCRIPTION

18       The <syslog.h> header shall define the  following  symbolic  constants,
19       zero  or  more of which may be OR'ed together to form the logopt option
20       of openlog():
21
22       LOG_PID       Log the process ID with each message.
23
24       LOG_CONS      Log to the system console on error.
25
26       LOG_NDELAY    Connect to syslog daemon immediately.
27
28       LOG_ODELAY    Delay open until syslog() is called.
29
30       LOG_NOWAIT    Do not wait for child processes.
31
32       The <syslog.h> header shall define the following symbolic constants for
33       use as the facility argument to openlog():
34
35       LOG_KERN      Reserved for message generated by the system.
36
37       LOG_USER      Message generated by a process.
38
39       LOG_MAIL      Reserved for message generated by mail system.
40
41       LOG_NEWS      Reserved for message generated by news system.
42
43       LOG_UUCP      Reserved for message generated by UUCP system.
44
45       LOG_DAEMON    Reserved for message generated by system daemon.
46
47       LOG_AUTH      Reserved for message generated by authorization daemon.
48
49       LOG_CRON      Reserved for message generated by clock daemon.
50
51       LOG_LPR       Reserved for message generated by printer system.
52
53       LOG_LOCAL0    Reserved for local use.
54
55       LOG_LOCAL1    Reserved for local use.
56
57       LOG_LOCAL2    Reserved for local use.
58
59       LOG_LOCAL3    Reserved for local use.
60
61       LOG_LOCAL4    Reserved for local use.
62
63       LOG_LOCAL5    Reserved for local use.
64
65       LOG_LOCAL6    Reserved for local use.
66
67       LOG_LOCAL7    Reserved for local use.
68
69       The  <syslog.h> header shall define the following macros for construct‐
70       ing the maskpri argument to setlogmask().  The following macros  expand
71       to  an expression of type int when the argument pri is an expression of
72       type int:
73
74       LOG_MASK(pri) A mask for priority pri.
75
76       The <syslog.h> header shall define the following symbolic constants for
77       use as the priority argument of syslog():
78
79       LOG_EMERG     A panic condition was reported to all processes.
80
81       LOG_ALERT     A condition that should be corrected immediately.
82
83       LOG_CRIT      A critical condition.
84
85       LOG_ERR       An error message.
86
87       LOG_WARNING   A warning message.
88
89       LOG_NOTICE    A condition requiring special handling.
90
91       LOG_INFO      A general information message.
92
93       LOG_DEBUG     A message useful for debugging programs.
94
95       The following shall be declared as functions and may also be defined as
96       macros. Function prototypes shall be provided.
97
98
99           void  closelog(void);
100           void  openlog(const char *, int, int);
101           int   setlogmask(int);
102           void  syslog(int, const char *, ...);
103
104       The following sections are informative.
105

APPLICATION USAGE

107       None.
108

RATIONALE

110       None.
111

FUTURE DIRECTIONS

113       None.
114

SEE ALSO

116       The System Interfaces volume of POSIX.1‐2017, closelog()
117
119       Portions of this text are reprinted and reproduced in  electronic  form
120       from  IEEE Std 1003.1-2017, Standard for Information Technology -- Por‐
121       table Operating System Interface (POSIX), The Open Group Base  Specifi‐
122       cations  Issue  7, 2018 Edition, Copyright (C) 2018 by the Institute of
123       Electrical and Electronics Engineers, Inc and The Open Group.   In  the
124       event of any discrepancy between this version and the original IEEE and
125       The Open Group Standard, the original IEEE and The Open Group  Standard
126       is  the  referee document. The original Standard can be obtained online
127       at http://www.opengroup.org/unix/online.html .
128
129       Any typographical or formatting errors that appear  in  this  page  are
130       most likely to have been introduced during the conversion of the source
131       files to man page format. To report such errors,  see  https://www.ker
132       nel.org/doc/man-pages/reporting_bugs.html .
133
134
135
136IEEE/The Open Group                  2017                         syslog.h(0P)
Impressum