These are loosely based on the unix syslog(3) function and relatives.
type facility = [
The assorted logging facilities. The default is
`LOG_USER. You can set a new default with openlog, or give a specific facility per syslog call.
Flags to pass to openlog. LOG_NDELAY is mandatory and implied
type level = [
The priority of the error.
val facility_of_string : string -> facility
given a string descibing a facility, return the facility. The strings consist of the name of the facility with the LOG_ chopped off. They are not case sensitive.
openlog ?(logpath=AUTODETECTED) ?(facility=`LOG_USER) ?(flags=) tag Similar to openlog(3). You MUST define
tag as 32 ABNF alphanumeric characters maximum.
Same as syslog(3), except there's no formats.
val closelog : t -> unit
Close the log.