.SS openlog()
.BR openlog ()
opens a connection to the system logger for a program.
-
+.PP
The string pointed to by
.I ident
is prepended to every message, and is typically set to the program name.
(POSIX.1-2008 does not specify the behavior when
.I ident
is NULL.)
-
+.PP
The
.I option
argument specifies flags which control the operation of
and
.I facility
are described below.
-
+.PP
The use of
.BR openlog ()
is optional; it will automatically be called by
.BR syslog ()
generates a log message, which will be distributed by
.BR syslogd (8).
-
+.PP
The
.I priority
argument is formed by ORing together a
call, a default of
.BR LOG_USER
is employed.
-
+.PP
The remaining arguments are a
.IR format ,
as in
the error message string
.IR strerror ( errno ).
The format string need not include a terminating newline character.
-
+.PP
The function
.BR vsyslog ()
performs the same task as
(but not
.BR vsyslog ())
are specified in SUSv2, POSIX.1-2001, and POSIX.1-2008.
-
+.PP
POSIX.1-2001 specifies only the
.B LOG_USER
and
the other
.I facility
values appear on most UNIX systems.
-
+.PP
The
.B LOG_PERROR
value for