module Asl:sig
..end
The Apple System Log is intended to be a replacement for syslog on OSX systems.
Example:
let client = Asl.Client.create ~ident:"example" ~facility:"Daemon" ~opts:[ `Stderr ] () in
let message = Asl.Message.create ~sender:"example" () in
Asl.log ~client message `Notice "hello, world!"
For context, please read the following documents:
module Client:sig
..end
module Message:sig
..end
typelevel =
[ `Alert | `Crit | `Debug | `Emerg | `Err | `Info | `Notice | `Warning ]
val log : ?client:Client.t -> Message.t -> level -> string -> unit
Creating a client is optional. If none is provided then a default
thread-safe client is used. Note the internal locks can cause
extra contention between threads. Note also the only way to have
logs printed to stderr is to construct and use a Client.t.