package logs-syslog

  1. Overview
  2. Docs
Logs reporter to syslog (UDP/TCP/TLS)

Install

Dune Dependency

Authors

Maintainers

Sources

logs-syslog-v0.2.2.tbz
sha256=2d96b764f0e6e904f5dd068fc128f1c7a41b0ad3cef4b661fd6233a348aa67e1
sha512=6180ce970921ba2027a91412b4952f17f96d46ff684cb10d4f87f1bd55aec251d078bd23c18ddaa0ffff876ad5b61886691c25ecedf3daf9875b021446ea8ade

Description

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).

Published: 03 Nov 2019

README

Logs-syslog - Logs output via syslog

v0.2.2

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]

Documentation

API documentation is available online.

Installation

This is targeting other libraries (apart from syslog-message) which are released to opam-repository.

opam pin add syslog-message --dev-repo
opam pin add logs-syslog https://github.com/hannesm/logs-syslog.git

Dependencies (5)

  1. syslog-message >= "1.0.0" & < "1.2.0"
  2. ptime
  3. logs
  4. dune >= "1.1.0"
  5. ocaml >= "4.03.0"

Dev Dependencies

None

Used by

None

Conflicts (5)

  1. tls >= "0.16.0"
  2. mirage-stack < "2.0.0"
  3. mirage-clock < "3.0.0"
  4. mirage-console < "3.0.0"
  5. mirage-kv < "3.0.0"
OCaml

Innovation. Community. Security.