Lines Matching refs:syslog

46 and its configuration file (usually @file{/etc/syslog.conf}), Syslogd
63 @code{syslog} UDP port as well as the local socket for messages.
86 @xref{syslog; vsyslog}. Keep in mind that these are
93 For the complete list, see @ref{syslog; vsyslog}. Except for
117 to the @code{syslog} UDP port on that system. @xref{Sockets}.
128 * syslog; vsyslog:: Submit message to Syslog
137 @code{syslog} UDP port on that system. @xref{Sockets}.
145 @file{syslog.h}.
148 @standards{BSD, syslog.h}
165 @code{syslog} invocations will prefix to each message. This is intended
191 #include <syslog.h>
198 syslog (LOG_INFO, "shared library has been invoked");
204 Without the call to @code{closelog}, future invocations of @code{syslog}
207 unmapped. This is a limitation of the BSD syslog interface.
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}
227 Error stream in addition to submitting it to Syslog. If off, @code{syslog}
231 If on, @code{openlog} sets up the connection so that a @code{syslog} on
233 message instead to system console. If off, @code{syslog} does not write
238 When on, @code{openlog} sets up the connection so that a @code{syslog}
244 When off, a future @code{syslog} call must open and connect the socket.
257 @code{syslog} on this connection that specifies default facility causes
258 this facility to be associated with the message. See @code{syslog} for
279 @node syslog; vsyslog
280 @subsection syslog, vsyslog
283 @file{syslog.h}.
285 @c syslog() is implemented as a call to vsyslog().
286 @deftypefun void syslog (int @var{facility_priority}, const char *@var{format}, @dots{})
287 @standards{BSD, syslog.h}
289 @c syslog @mtsenv @mtslocale @asucorrupt @ascuheap @asulock @ascudlopen @acucorrupt @aculock @acsme…
292 @c syslog(INTERNALLOG) dup @mtsenv @mtslocale @asucorrupt @ascuheap @asulock @ascudlopen @acucorr…
321 @code{syslog} submits a message to the Syslog facility. It does this by
324 @code{syslog} submits the message with the facility and priority indicated
381 @strong{NB:} @code{syslog} recognizes one other facility code: that of
383 functions. If you try, it looks the same to @code{syslog} as if you are
388 case, @code{syslog} assumes the default facility established when the
415 it did not call @code{openlog}), @code{syslog} implicitly opens the
421 @code{syslog} leaves the Syslog connection open.
423 If the @file{/dev/log} socket is not open and connected, @code{syslog}
427 @code{syslog} leaves @file{/dev/log} open and connected unless its attempt
428 to send the message failed, in which case @code{syslog} closes it (with the
436 #include <syslog.h>
437 syslog (LOG_MAKEPRI(LOG_LOCAL1, LOG_ERROR),
446 @standards{BSD, syslog.h}
451 This is functionally identical to @code{syslog}, with the BSD style variable
461 @file{syslog.h}.
464 @standards{BSD, syslog.h}
481 generate custom syslog output, you should use @code{closelog} to drop
497 @file{syslog.h}.
500 @standards{BSD, syslog.h}
507 future @code{syslog} calls shall be ignored. If a program has not
508 called @code{setlogmask}, @code{syslog} doesn't ignore any calls. You
523 possible message priorities. If the bit is on, @code{syslog} handles
524 messages of that priority normally. If it is off, @code{syslog}
526 described in @ref{syslog; vsyslog} and the @code{LOG_MASK} to construct
555 Here is an example of @code{openlog}, @code{syslog}, and @code{closelog}:
558 get discarded without ever reaching Syslog. So the second @code{syslog}
562 #include <syslog.h>
568 syslog (LOG_NOTICE, "Program started by User %d", getuid ());
569 syslog (LOG_INFO, "A tree falls in a forest");