logs-syslogversion

Logs output via syslog

This library provides log reporters using syslog over various transports (UDP, TCP, TLS) with various effectful layers: Unix, Lwt, MirageOS. It integrates the Logs library, which provides logging infrastructure for OCaml, with the syslog-message library, which provides encoding and decoding of syslog messages (RFC 3164).

Six ocamlfind libraries are provided: the bare Logs-syslog, a minimal dependency Unix Logs-syslog-unix, a Lwt one Logs-syslog-lwt, another one with Lwt and TLS (RFC 5425) support Logs-syslog-lwt-tls, a MirageOS one Logs-syslog-mirage, and a MirageOS one using TLS Logs-syslog-mirage-tls.

Since MirageOS3, syslog is well integrated:

let logger =
  syslog_udp
    (syslog_config ~truncate:1484 "robur.coop" (Ipaddr.V4.of_string_exn "192.168.0.1"))
    net
...
  register "myunikernel" [
    foreign
      ~deps:[abstract logger]
AuthorHannes Mehnert <hannes@mehnert.org>
LicenseISC
Published
Homepagehttps://github.com/hannesm/logs-syslog
Issue Trackerhttps://github.com/hannesm/logs-syslog/issues
MaintainerHannes Mehnert <hannes@mehnert.org>
Dependencies
Optional dependencies
Conflicts
Source [http] https://github.com/hannesm/logs-syslog/releases/download/0.1.0/logs-syslog-0.1.0.tbz
sha256=ba50d55878d96c193300c1bd2caa7e6dc6135a0ba0adffa94aa95df06a89a1f7
md5=40e8c68b73b77d8b801fcfba70633c6f
Edithttps://github.com/ocaml/opam-repository/tree/master/packages/logs-syslog/logs-syslog.0.1.0/opam
No package is dependent