package ocamlog
All checked builds pass sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Simple Logger for OCaml
Install
dune-project
Dependency
Authors
Maintainers
Sources
ocamlog-0.2.tar.gz
md5=093992b1204fb4759541a2331808351c
sha512=e55521d9eec0204f88f6c811f57d112f67f5d001efbb3e7880baaf81a724b8cdf82887465de6b84a91b84e5664c5d47835a4bc889de137e8d692aab0957ad18d
Description
Able to print with different colors, levels, trace out caller, etc.
Added to opam-repository:
README
OcamLog
Logger pour Ocaml.
Usage
Simple
Fichier exemple bin/main.ml:
open Lib
let () = Ocamlog.print Trace "Message 1"
let () = Ocamlog.print Info "Message 2"
let () = Ocamlog.print Warning "Message 3"
let () = Ocamlog.print Error "Message 4"
Décorations
Fichier exemple bin/main.ml:
open Lib
let () = Ocamlog.enableDecorations ()
let () = Ocamlog.print Trace "Message 1"
let () = Ocamlog.print Info "Message 2"
let () = Ocamlog.print Warning "Message 3"
let () = Ocamlog.print Error "Message 4"
let () = Ocamlog.disableDecorations ()
Inspiration
Merci grand maître Émilien pour cette super idée : CppLogger2
Dev Dependencies
None
Optional Dependencies
None
Used by
None
Conflicts
None
Build status
Results of building ocamlog with each compiler on check.ci.ocaml.org, run of against opam-repository 8a77e58. All results for this package.
Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.
| Version | OCaml 4.11 | OCaml 4.14 | OCaml 5.2 | OCaml 5.4 | OCaml 5.5 |
|---|---|---|---|---|---|
| 0.2 (this version) | good | good | good | good | good |
- good Package successfully built
- partial One of the dependencies failed to build
- bad Package failed to build
- n/a Package is not available in this environment
- internal Internal failure
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page