openlog ~id ~options ~facility ()
opens a connection to the system logger (possibly
delayed) using prefixed identifier id
, options
, and facility
.
WARNING: this function leaks the id
argument, if provided. There is no way around
that if syslog is called in a multi-threaded environment! Therefore it shouldn't be
called too often. What for, anyway?
Calling openlog
before syslog
is optional. If you forget, syslog will do it for
you with the defaults.
syslog_printf
acts like syslog
, but allows printf
-style specification of the
message.