package syslog-message

All checked builds pass
  1. Overview
  2. Docs
Syslog message parser

Install

dune-project
 Dependency

Authors

Maintainers

Sources

syslog-message-1.2.0.tbz
sha256=f9eca2bfa26f0b410ab371b5b39aa816d2b46d4e18838d401e0e4d73ac43f70d
sha512=7bcf7d6b8085614a440c67a655c90353f56a55a7e0888fc9a1e7b7dec7a84bb32d36324fd157fd70942b0d868cc85e19272e7700ccc68362e15b5d4b6df66993

Description

This is a library for parsing and generating RFC3164 compatible Syslog messages.

Added to opam-repository:

README

syslog-message - Syslog message parser

1.2.0

This is a library for parsing and generating RFC 3164 compatible Syslog messages.

Documentation

Build Status

API documentation is available online.

match Ptime.of_date_time ((1970, 1, 1), ((0, 0, 0), 0)) with
| Some ts -> Syslog_message.decode ~ctx:{timestamp=ts; hostname="-"; set_hostname=false} "<133>Oct  3 15:51:21 server001: foobar"
| None -> failwith "Failed to parse Syslog message";;
- : Syslog_message.t option =
Some {Syslog_message.facility = Syslog_message.Local0; severity = Syslog_message.Notice; timestamp = <abstr>;
  hostname = "server001"; message = "foobar"}

Installation

This library can be installed with opam: opam install syslog-message

Testing

A test suite using qcheck is provided: opam install --build-test syslog-message

Dependencies (3)

  1. ptime
  2. dune >= "2.0.0"
  3. ocaml >= "4.08.0"

Dev Dependencies (1)

  1. qcheck with-test & > "0.5"

Optional Dependencies

None

Conflicts (1)

  1. result < "1.5"

Build status

Results of building syslog-message with each compiler on check.ci.ocaml.org, run of against opam-repository 7cdc698. All results for this package.

Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.

Version OCaml 4.11 OCaml 4.14 OCaml 5.2 OCaml 5.4 OCaml 5.5
1.2.0 (this version) good good good good good
  • good Package successfully built
  • partial One of the dependencies failed to build
  • bad Package failed to build
  • n/a Package is not available in this environment
  • internal Internal failure