Library
Module
Module type
Parameter
Class
Class type
Syslog routines
These are loosely based on the unix syslog(3) function and relatives.
type facility = [
| `LOG_KERN
| `LOG_USER
| `LOG_MAIL
| `LOG_DAEMON
| `LOG_AUTH
| `LOG_SYSLOG
| `LOG_LPR
| `LOG_NEWS
| `LOG_UUCP
| `LOG_CRON
| `LOG_AUTHPRIV
| `LOG_FTP
| `LOG_NTP
| `LOG_SECURITY
| `LOG_CONSOLE
| `LOG_LOCAL0
| `LOG_LOCAL1
| `LOG_LOCAL2
| `LOG_LOCAL3
| `LOG_LOCAL4
| `LOG_LOCAL5
| `LOG_LOCAL6
| `LOG_LOCAL7
]
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_CONS
isn't implemented yet. LOG_NDELAY is mandatory and implied
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=) program_name, similar to openlog(3)
Same as syslog(3), except there's no formats.
val closelog : t -> unit
Close the log.