library(uid)
to manage user identifiers (e.g., drop root
privileges).
This library provides an interface to the Unix syslog()
facility. The interface is an almost direct translation of the POSIX
syslog API, with two additions:
library(debug)
using
prolog:debug_print_hook/3,
where debug topics are mapped to syslog priorities and
remaining debug topics are mapped to the syslog priority debug
.
Note that this interface makes no attempt to abstract over logging
facilities of operating systems. We expect that such abstractions will
be implemented at the Prolog level using multiple integrations into
library(debug)
.
openlog()
library call. If the library call is successful, it runs at_halt(closelog)
to ensure closing the system log on clean exit.
Ident | prepended to every message, and is typically set to the program name. |
Options | is a list of options. Values are
corresponding C options, after removing =LOG_= and translation to lower
case: cons , ndelay , nowait , odelay ,
perror , pid . |
Facility | is one of auth , authpriv , cron , daemon ,
ftp , kern , local0 ... local7 , lpr , mail ,
news , syslog , user or uucp . |
Priority | is one of emerg , alert , crit , err ,
warning , notice , info or debug . |
debug
priority.