Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
lib
 
 
pkg
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.