this repo has no description
1opam-version: "2.0"
2maintainer: "Hannes Mehnert <hannes@mehnert.org>"
3authors: ["Hannes Mehnert <hannes@mehnert.org>"]
4homepage: "https://github.com/hannesm/logs-syslog"
5doc: "https://hannesm.github.io/logs-syslog/doc"
6dev-repo: "git+https://github.com/hannesm/logs-syslog.git"
7bug-reports: "https://github.com/hannesm/logs-syslog/issues"
8license: "ISC"
9depends: [
10 "ocaml" {>= "4.03.0"}
11 "ocamlfind" {build}
12 "ocamlbuild" {build}
13 "topkg" {build}
14 "logs"
15 "ptime"
16 "syslog-message" {= "0.0.2"}
17]
18depopts: [
19 "lwt"
20 "x509" "tls" "cstruct"
21 "mirage-kv-lwt"
22 "mirage-console-lwt" "mirage-clock" "mirage-stack-lwt" "ipaddr"
23]
24
25conflicts: [
26 "mirage-types-lwt" {< "3.0.0"}
27 "x509" {< "0.6.0"}
28 "tls" {< "0.8.0"}
29 "tls" {>= "0.16.0"}
30 "mirage-clock" {>= "3.0.0"}
31]
32
33build: [
34 [ "ocaml" "pkg/pkg.ml" "build" "--pinned" "%{pinned}%"
35 "--with-lwt" "%{lwt:installed}%"
36 "--with-lwt-tls" "%{lwt+x509+tls+cstruct:installed}%"
37 "--with-mirage" "%{lwt+mirage-stack-lwt+mirage-console-lwt+mirage-clock+cstruct+ipaddr:installed}%"
38 "--with-mirage-tls" "%{lwt+mirage-kv-lwt+x509+tls+mirage-stack-lwt+mirage-console-lwt+mirage-clock+cstruct+ipaddr:installed}%"
39 ]
40]
41synopsis: "Logs output via syslog"
42description: """
43This library provides log reporters using syslog over various transports (UDP,
44TCP, TLS) with various effectful layers: Unix, Lwt, MirageOS. It integrates the
45[Logs](http://erratique.ch/software/logs) library, which provides logging
46infrastructure for OCaml, with the
47[syslog-message](http://verbosemo.de/syslog-message/) library, which provides
48encoding and decoding of syslog messages ([RFC
493164](https://tools.ietf.org/html/rfc3164)).
50
51Six ocamlfind libraries are provided: the bare `Logs-syslog`, a minimal
52dependency Unix `Logs-syslog-unix`, a Lwt one `Logs-syslog-lwt`, another one
53with Lwt and TLS ([RFC 5425](https://tools.ietf.org/html/rfc5425)) support
54`Logs-syslog-lwt-tls`, a MirageOS one `Logs-syslog-mirage`, and a MirageOS one
55using TLS `Logs-syslog-mirage-tls`.
56
57Since MirageOS3, [syslog is well integrated](http://docs.mirage.io/mirage/Mirage/index.html#type-syslog_config):
58
59```
60let logger =
61 syslog_udp
62 (syslog_config ~truncate:1484 "robur.coop" (Ipaddr.V4.of_string_exn "192.168.0.1"))
63 net
64...
65 register "myunikernel" [
66 foreign
67 ~deps:[abstract logger]
68```"""
69url {
70 src:
71 "https://github.com/hannesm/logs-syslog/releases/download/0.1.1/logs-syslog-0.1.1.tbz"
72 checksum: [
73 "sha256=ce42a121d452847b24fe0ad738691f7af59160753db45a2a29a8d2e21363cd1f"
74 "md5=c266a05c9768f8c75b506daee5715f4b"
75 ]
76}