Lines Matching refs:openlog

127 * openlog::                      Open connection to Syslog
141 @node openlog
142 @subsection openlog
147 @deftypefun void openlog (const char *@var{ident}, int @var{option}, int @var{facility})
150 @c openlog @asulock @aculock @acsfd
161 @code{openlog} opens or reopens a connection to Syslog in preparation
169 If @var{ident} is NULL, or if @code{openlog} is not called, the default
178 you must call @code{openlog} again; overwriting the string pointed to by
186 loaded and then unloaded (e.g. a PAM module), and you use @code{openlog},
196 openlog ("mylibrary", option, priority);
209 @code{openlog} may or may not open the @file{/dev/log} socket, depending
215 You don't have to use @code{openlog}. If you call @code{syslog} without
216 having called @code{openlog}, @code{syslog} just opens the connection
225 If on, @code{openlog} sets up the connection so that any @code{syslog}
231 If on, @code{openlog} sets up the connection so that a @code{syslog} on
238 When on, @code{openlog} sets up the connection so that a @code{syslog}
240 the message. When off, @code{openlog} does not insert the PID.
243 When on, @code{openlog} opens and connects the @file{/dev/log} socket.
262 If a Syslog connection is already open when you call @code{openlog},
263 @code{openlog} ``reopens'' the connection. Reopening is like opening
266 LOG_NDELAY and the socket is already open and connected, @code{openlog}
415 it did not call @code{openlog}), @code{syslog} implicitly opens the
416 connection the same as @code{openlog} would, with the following defaults
417 for information that would otherwise be included in an @code{openlog}
424 opens and connects it, the same as @code{openlog} with the
476 back to the default, if @code{openlog} was called with a non-NULL argument
480 If you are writing shared library code that uses @code{openlog} to
483 done. Please read the section on @code{openlog} for more information:
484 @xref{openlog}.
487 @code{closelog} before re-opening a Syslog connection with @code{openlog}.
555 Here is an example of @code{openlog}, @code{syslog}, and @code{closelog}:
566 openlog ("exampleprog", LOG_CONS | LOG_PID | LOG_NDELAY, LOG_LOCAL1);