logs-syslog

Author Hannes Mehnert <hannes@mehnert.org>
License ISC
Homepage https://github.com/hannesm/logs-syslog
Issue Tracker https://github.com/hannesm/logs-syslog/issues
Maintainer Hannes Mehnert <hannes@mehnert.org>
Dependencies
& logs
ocamlbuild
ocamlfind
ptime
syslog-message >= 0.0.2
topkg
Optional dependencies
| cstruct
ipaddr
lwt
mirage-clock
mirage-console-lwt
mirage-kv-lwt
mirage-stack-lwt
tls
x509
Available ocaml-version >= "4.03.0"
Published Feb 23, 2017
Source [http] http://github.com/hannesm/logs-syslog/releases/download/0.1.0/logs-syslog-0.1.0.tbz
40e8c68b73b77d8b801fcfba70633c6f
Statistics Installed 30 times in last month.
Edit https://github.com/ocaml/opam-repository/tree/master/packages/logs-syslog/logs-syslog.0.1.0/opam

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 "nqsb.io" (Ipaddr.V4.of_string_exn "192.168.0.1"))
    net
...
  register "myunikernel" [
    foreign
      ~deps:[abstract logger]
No package is dependent