OCaml bindings for the Apple System Log API
Clone or download
djs55 Merge pull request #14 from djs55/jbuilder
Port to topkg, jbuilder, prepare to release 0.11
Latest commit 95732a5 May 22, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples Switch to jbuilder May 22, 2017
lib Fix warnings May 22, 2017
pkg Use topkg May 22, 2017
.gitignore Switch to jbuilder May 22, 2017
.travis.yml test with ocaml versions 4.02 and 4.03 Oct 4, 2016
CHANGES.md Prepare to release 0.11 May 22, 2017
LICENSE Prepare to release 0.8 Apr 7, 2016
Makefile Switch to jbuilder May 22, 2017
README.md README.md: only one .html suffix, please Oct 22, 2015
asl.opam Switch to jbuilder May 22, 2017

README.md

Bindings to the Apple System Log

This library allows you to log via the Apple System Log from OCaml programs.

A simple example:

let ident = "my program" in
let facility = "Daemon" in
let client = Asl.Client.create ~ident ~facility ~opts:[ `Stderr ] () in
let message = Asl.Message.create ~sender:"example" () in
(* ... some time later ... *)
Asl.log ~client message `Notice "hello, world!";

Please read the API documentation.

For more context, please read the Apple System Log man pages.