package logs
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Logging infrastructure for OCaml
Install
dune-project
Dependency
Authors
Maintainers
Sources
logs-0.9.0.tbz
sha512=b75fb28e83f33461b06b5c9b60972c4a9a9a1599d637b4a0c7b1e86a87f34fe5361e817cb31f42ad7e7cbb822473b28fab9f58a02870eb189ebe88dae8e045ff
doc/CHANGES.html
v0.9.0 2025-07-08 Zagreb
- Replace references and mutable fields by atomic references to avoid race conditions (#56). Thanks to Nathan Taylor for reporting.
- Fix
Logs.{err,warn}_count. The counts were counting the reports not the logs which is not what the spec says. This means the counts were wrong when the reporting level was below the corresponding level (#55). Thanks to Mathieu Barbin for the report. - Fix
Log.Tag.listalways returning the empty list. Logs.format_reporterandLogs_fmt.reporterreplace a few format strings and^^uses by direct calls toFormatprimitives.- Requires OCaml >= 4.14.
- Use Format.pp_print_text instead of your own.
- Export
logsfrom each sub library.
v0.8.0 2025-03-10 La Forclaz (VS)
- Install one library per directory (#48). Thanks to @mefyl for the suggestion.
- Requires OCaml >= 4.08, Cmdliner >= 1.3.0, Fmt >= 0.9.0 and js_of_ocaml-compiler >= 5.5.0
- Depend on the
js_of_ocaml-compiler.runtimelibrary rather thanjs_of_ocaml. - Handle
cmdlinerdeprecations.
v0.7.0 2019-08-09 Zagreb
Support for thread safe logging, thanks to Jules Aguillon for the work.
- Add
Logs.set_reporter_mutexfor installing mutual exclusion primitives to access the reporter. - Add
Logs_threaded.enableto install mutual exclusion primitives for OCaml threads.
v0.6.3 2019-04-19 La Forclaz (VS)
- Make the package compatible with
js_of_ocaml3.3.0's namespacing. Thanks to Hugo Heuzard for the patch. - Fix toplevel initialisation for
Omod(#21). - Fix 4.08
Pervasivesdeprecation. - Drop support for ocaml < 4.03.0
- Doc: various improvements and typo fixing.
v0.6.2 2016-08-10 Zagreb
- 4.04.0 compatibility. Thanks to Damien Doligez for the patch.
v0.6.1 2016-06-08 Cambridge (UK)
- Fix logs.top package on case sensitive file systems.
v0.6.0 2016-05-23 La Forclaz (VS)
- 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_reportera reporter likeLogs_fmt.reporterbut without colors and hence without the dependency onFmt. Thanks to Simon Cruanes for the suggestion. Logs_fmt.reporter, the optional argumentprefixis changed topp_headerand 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_stylewas being used. - Add
Logs.level_{of,to}_string.
v0.5.0 2016-01-07 La Forclaz (VS)
- 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_stdolibrary 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_lwtlibrary. Provides logging functions returninglwtthreads that proceed only once the report is over. - Add
Logs_fmt.pp_headerandLogs_fmt.{err_warn,info_debug}_style. - Add
Logs.pp_{level,header}.
v0.4.2 2015-12-03 Cambridge (UK)
First release.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page