- Install one library per directory (#48). Thanks to @mefyl for the suggestion.
- Requires OCaml >= 4.08, Cmdliner >= 1.1.0, Fmt >= 0.9.0 and js_of_ocaml-compiler >= 4.0.0
- Depend on the
js_of_ocaml-compiler.runtime
library rather thanjs_of_ocaml
.
Support for thread safe logging, thanks to Jules Aguillon for the work.
- Add
Logs.set_reporter_mutex
for installing mutual exclusion primitives to access the reporter. - Add
Logs_threaded.enable
to install mutual exclusion primitives for OCaml threads.
- Make the package compatible with
js_of_ocaml
3.3.0's namespacing. Thanks to Hugo Heuzard for the patch. - Fix toplevel initialisation for
Omod
(#21). - Fix 4.08
Pervasives
deprecation. - Drop support for ocaml < 4.03.0
- Doc: various improvements and typo fixing.
- 4.04.0 compatibility. Thanks to Damien Doligez for the patch.
- Fix logs.top package on case sensitive file systems.
- Build depend on topkg.
- Relicensed from BSD3 to ISC.
- Revise the command line interface provided by
Logs_cli
. Removes the argument from option-v
. See issue #13 for details. - Add
Logs.format_reporter
a reporter likeLogs_fmt.reporter
but without colors and hence without the dependency onFmt
. Thanks to Simon Cruanes for the suggestion. Logs_fmt.reporter
, the optional argumentprefix
is changed topp_header
and becomes a formatter. The default prefix now favors the basename ofSys.argv.(0)
if it exists overSys.executable_name
; this gives better results for interpreted programs.- Fix colors in
Logs_fmt.pp_header
, onlyLogs.err_style
was being used. - Add
Logs.level_{of,to}_string
.
- Support for OCaml 4.01.0
- Change the logging structure from
Logs.err fmt (fun m -> m ...)
toLogs.err (fun m -> m fmt ...)
. See the documentation basics for more details. Thanks to Edwin Török for suggesting this. - Remove the
Logs.unit[_msgf]
functions, they are no longer needed. - Rename the
Logs_stdo
library toLogs_fmt
. - Changes the signature of reporters to take a callback function to call unconditionally once the report is over. Thanks to Edwin Török for suggesting the mecanism.
- Add the optional
Logs_lwt
library. Provides logging functions returninglwt
threads that proceed only once the report is over. - Add
Logs_fmt.pp_header
andLogs_fmt.{err_warn,info_debug}_style
. - Add
Logs.pp_{level,header}
.
First release.