logs
v0.7.0
Logs provides a logging infrastructure for OCaml. Logging is performed
on sources whose reporting level can be set independently. Log message
report is decoupled from logging and is handled by a reporter.
A few optional log reporters are distributed with the base library and
the API easily allows to implement your own.
Logs
has no dependencies. The optional Logs_fmt
reporter on OCaml
formatters depends on Fmt. The optional Logs_browser
reporter that reports to the web browser console depends on
js_of_ocaml. The optional Logs_cli
library that provides
command line support for controlling Logs depends onCmdliner
. The optional Logs_lwt
library that provides
Lwt logging functions depends on Lwt
Logs and its reporters are distributed under the ISC license.
Home page: http://erratique.ch/software/logs
Installation
Logs can be installed with opam
:
opam install logs
opam install fmt cmdliner lwt js_of_ocaml logs # Install all opt libraries
If you don't use opam
consult the opam
file for build
instructions.
Documentation
The documentation can be consulted online or via odig doc logs
.
Sample programs
If you installed Logs with opam
sample programs are located in
the directory opam config var logs:doc
.
>= "1.5.0"
>= "0.8"
>= "0.3.3"
>= "0.1.3"
>= "0.6"
>= "0.9.5"
>= "0.11.0"
>= "0.11.0"
>= "3.0"
>= "1.1.0"
< "0.9" | >= "1.3.0"
>= "0.22.0" & < "1.0.0"
>= "1.0.0"
>= "2.0.0"
>= "5.0.0"
< "0.2.0"
>= "0.14.0" & != "3.0.0"
>= "2.3.0"
< "0.10.0"
>= "0.4"
>= "0.4"
>= "0.4"
>= "0.4"
>= "0.4"
>= "0.4"
>= "0.4"
>= "0.4"
< "0.11.0"
>= "0.2.0"
>= "4.0.0"
>= "4.4.0"
>= "0.2.1"
< "0.3"
>= "1.0.0"
>= "2.0.0"
>= "1.8.0"
>= "3.0.0"
>= "1.11.1" & < "2.0.0" | >= "3.0.0"
>= "1.4.0"
>= "0.7.0"
>= "0.11.0"
>= "2.3.0"
>= "2.3.0"
>= "2.3.0"
>= "2.5.0"
>= "2.3.0"
>= "2.3.0"
>= "2.3.0"
>= "2.3.0"
>= "2.3.0"
>= "2.3.0"
>= "0.6"
>= "3.3.1"
>= "0.3"
>= "1.1"
>= "1.2.0"
< "v0.15.0"
>= "0.2.0"
>= "2.9.0"
>= "2.2.0"
>= "1.4.0"
>= "4.0.0"
>= "0.7.0"
>= "0.8.8"
>= "1.4.0"
>= "1.4.0"
>= "1.2.0"
>= "0.2.0"
>= "2.6.0"
>= "1.7.0"
>= "0.2"
>= "0.2.0" & < "0.6.1"
>= "3.0.0" & < "4.0.0"
>= "0.4.0"
>= "3.0.0"
>= "0.5.0"
>= "0.3.0"
>= "0.2.0"
>= "0.2.4"
< "0.0.4"
>= "2.0.0" & < "2.1.0"
>= "0.17.0"
>= "1.0"
>= "3.0.0"
>= "0.2.0"
>= "1.0"
>= "0.5.1"
>= "0.4"
>= "0.13.0"
>= "0.2.0"
>= "3.0.0"
< "0.2.0" | >= "0.3.0~rc2"
>= "0.6.0"
>= "0.20.0"
>= "3.0.0"
>= "13.0"
>= "0.12.0"
>= "2.10.0"
>= "0.11.0"