
syslog.pl -- Unix syslog interface
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:
- syslog/3 exploits format/3 to format syslog messages
- The library integrates into 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(+Ident:atom, +Options:list(atom), +Facility:atom) is det- Open system log. This predicate provides a direct interface into
the
openlog()library call. If the library call is successful, it runsat_halt(closelog)to ensure closing the system log on clean exit.
Undocumented predicates
The following predicates are exported, but not or incorrectly documented.