5 library(syslog): Unix syslog interface
All Application Manual Name SummaryHelp

  • Documentation
    • Reference manual
    • Packages
      • SWI-Prolog C-library
        • library(syslog): Unix syslog interface
          • openlog/3
          • syslog/2
          • syslog/3
          • closelog/0
          • debug_print_hook/3
Availability::- use_module(library(syslog)).(can be autoloaded)
Source[det]openlog(+Ident:atom, +Options:list(atom), +Facility:atom)
Open system log. This predicate provides a direct interface into the 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.