1syslog.h(3HEAD)                     Headers                    syslog.h(3HEAD)
2
3
4

NAME

6       syslog.h, syslog - definitions for system error logging
7

SYNOPSIS

9       #include <syslog.h>
10
11

DESCRIPTION

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

ATTRIBUTES

124       See attributes(5) for descriptions of the following attributes:
125
126
127
128
129       ┌─────────────────────────────┬─────────────────────────────┐
130       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
131       ├─────────────────────────────┼─────────────────────────────┤
132       │Interface Stability          │Standard                     │
133       └─────────────────────────────┴─────────────────────────────┘
134

SEE ALSO

136       syslog(3C), attributes(5), standards(5)
137
138
139
140SunOS 5.11                        10 Sep 2003                  syslog.h(3HEAD)
Impressum