package syslog

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type facility = [
  1. | `LOG_AUTH
  2. | `LOG_AUTHPRIV
  3. | `LOG_CONSOLE
  4. | `LOG_CRON
  5. | `LOG_DAEMON
  6. | `LOG_FTP
  7. | `LOG_KERN
  8. | `LOG_LOCAL0
  9. | `LOG_LOCAL1
  10. | `LOG_LOCAL2
  11. | `LOG_LOCAL3
  12. | `LOG_LOCAL4
  13. | `LOG_LOCAL5
  14. | `LOG_LOCAL6
  15. | `LOG_LOCAL7
  16. | `LOG_LPR
  17. | `LOG_MAIL
  18. | `LOG_NEWS
  19. | `LOG_NTP
  20. | `LOG_SECURITY
  21. | `LOG_SYSLOG
  22. | `LOG_USER
  23. | `LOG_UUCP
]
type flag = [
  1. | `LOG_CONS
  2. | `LOG_PERROR
  3. | `LOG_PID
]
type level = [
  1. | `LOG_ALERT
  2. | `LOG_CRIT
  3. | `LOG_DEBUG
  4. | `LOG_EMERG
  5. | `LOG_ERR
  6. | `LOG_INFO
  7. | `LOG_NOTICE
  8. | `LOG_WARNING
]
type t
val facility_of_string : string -> facility
val openlog : ?logpath:string -> ?facility:facility -> ?flags:flag list -> string -> t
val syslog : ?fac:facility -> t -> level -> string -> unit
val closelog : t -> unit
OCaml

Innovation. Community. Security.