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

NAME

6       syslog.h - definitions for system error logging
7

SYNOPSIS

9       #include <syslog.h>
10

DESCRIPTION

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

APPLICATION USAGE

135       None.
136

RATIONALE

138       None.
139

FUTURE DIRECTIONS

141       None.
142

SEE ALSO

144       The System Interfaces volume of IEEE Std 1003.1-2001, closelog()
145
147       Portions of this text are reprinted and reproduced in  electronic  form
148       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
149       -- Portable Operating System Interface (POSIX),  The  Open  Group  Base
150       Specifications  Issue  6,  Copyright  (C) 2001-2003 by the Institute of
151       Electrical and Electronics Engineers, Inc and The Open  Group.  In  the
152       event of any discrepancy between this version and the original IEEE and
153       The Open Group Standard, the original IEEE and The Open Group  Standard
154       is  the  referee document. The original Standard can be obtained online
155       at http://www.opengroup.org/unix/online.html .
156
157
158
159IEEE/The Open Group                  2003                       <syslog.h>(0P)
Impressum