29 .fi
30
31 .LP
32 .nf
33 \fBint\fR \fBsetlogmask\fR(\fBint\fR \fImaskpri\fR);
34 .fi
35
36 .SH DESCRIPTION
37 .sp
38 .LP
39 The \fBsyslog()\fR function sends a message to \fBsyslogd\fR(1M), which,
40 depending on the configuration of \fB/etc/syslog.conf\fR, logs it in an
41 appropriate system log, writes it to the system console, forwards it to a list
42 of users, or forwards it to \fBsyslogd\fR on another host over the network.
43 The logged message includes a message header and a message body. The message
44 header consists of a facility indicator, a severity level indicator, a
45 timestamp, a tag string, and optionally the process ID.
46 .sp
47 .LP
48 The message body is generated from the \fImessage\fR and following arguments in
49 the same manner as if these were arguments to \fBprintf\fR(3UCB), except that
50 occurrences of \fB%m\fR in the format string pointed to by the \fImessage\fR
51 argument are replaced by the error message string associated with the current
52 value of \fBerrno\fR. A trailing \fBNEWLINE\fR character is added if needed.
53 .sp
54 .LP
55 Symbolic constants for use as values of the \fIlogopt\fR, \fIfacility\fR,
56 \fIpriority\fR, and \fImaskpri\fR arguments are defined in the <\fBsyslog.h\fR>
57 header.
58 .sp
59 .LP
60 Values of the \fIpriority\fR argument are formed by ORing together a
61 \fIseverity level\fR value and an optional \fIfacility\fR value. If no
62 facility value is specified, the current default facility value is used.
63 .sp
64 .LP
65 Possible values of severity level include, in decreasing order:
66 .sp
67 .ne 2
68 .na
69 \fB\fBLOG_EMERG\fR\fR
|
29 .fi
30
31 .LP
32 .nf
33 \fBint\fR \fBsetlogmask\fR(\fBint\fR \fImaskpri\fR);
34 .fi
35
36 .SH DESCRIPTION
37 .sp
38 .LP
39 The \fBsyslog()\fR function sends a message to \fBsyslogd\fR(1M), which,
40 depending on the configuration of \fB/etc/syslog.conf\fR, logs it in an
41 appropriate system log, writes it to the system console, forwards it to a list
42 of users, or forwards it to \fBsyslogd\fR on another host over the network.
43 The logged message includes a message header and a message body. The message
44 header consists of a facility indicator, a severity level indicator, a
45 timestamp, a tag string, and optionally the process ID.
46 .sp
47 .LP
48 The message body is generated from the \fImessage\fR and following arguments in
49 the same manner as if these were arguments to \fBprintf\fR(3C), except that
50 occurrences of \fB%m\fR in the format string pointed to by the \fImessage\fR
51 argument are replaced by the error message string associated with the current
52 value of \fBerrno\fR. A trailing \fBNEWLINE\fR character is added if needed.
53 .sp
54 .LP
55 Symbolic constants for use as values of the \fIlogopt\fR, \fIfacility\fR,
56 \fIpriority\fR, and \fImaskpri\fR arguments are defined in the <\fBsyslog.h\fR>
57 header.
58 .sp
59 .LP
60 Values of the \fIpriority\fR argument are formed by ORing together a
61 \fIseverity level\fR value and an optional \fIfacility\fR value. If no
62 facility value is specified, the current default facility value is used.
63 .sp
64 .LP
65 Possible values of severity level include, in decreasing order:
66 .sp
67 .ne 2
68 .na
69 \fB\fBLOG_EMERG\fR\fR
|