package syslog-message
Build not checkedInstall
dune-project
Dependency
Authors
Maintainers
Sources
sha256=78c3d0787a9b9d86469ef213968426aa7fb3253d49e62756ee2a114a144daca4
md5=0894adad6e936975d5aaf7ed32ec2908
Description
This is a library for parsing and generating RFC 3164 compatible Syslog messages.
Added to opam-repository:
README
syslog-message - Syslog message parser
0.0.2
This is a library for parsing and generating RFC 3164 compatible Syslog messages.
Documentation
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
Dev Dependencies (1)
-
qcheck
with-test & < "0.5"
Optional Dependencies
None
Used by
None
Conflicts
None
Build status
Results of building syslog-message with each compiler on check.ci.ocaml.org, run of against opam-repository 8a77e58. 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.
This version is not in the latest run; the versions below are.
- 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