package little_logger

All checked builds pass
  1. Overview
  2. Docs
A tiny, little logger <3

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.3.0.tar.gz
md5=7f88c4712e7ac822d7ea67b8a3f182a3
sha512=4783cf45aff70ef3d4fc3f3d640d9ca7b99061431ddbd389d319ed2a24b07e251a107b1b0d9f7a8ad62178e7535e97a78b11d072322925b3d81f7149c314ec60

Description

Added to opam-repository:

README

Little Logger

Build and test Coverage Status

Little_logger is a tiny, little logger for OCaml 💖, inspired by the Ruby Std-lib Logger.

Quick start

Print an error message to stderr.

open Little_logger
let () = Logger.error (fun () -> sprintf "something %s happened" "bad")
(* E, [2021-08-17 17:23:32 #102259] ERROR -- something bad happened *)

For more info, see the docs.

Documentation

The api docs and examples are available on online.

It's quite simple though (< 100 LOC), so check out the source to see exactly how things work 🍨

License

license MIT or Apache 2.0

Licensed under the Apache License, Version 2.0 or the MIT license, at your option. This program may not be copied, modified, or distributed except according to those terms.

See also

Here are some other lovely OCaml logging libraries that you may be interested in:

Dependencies (3)

  1. ptime
  2. ocaml >= "4.08.0"
  3. dune >= "2.8"

Dev Dependencies (7)

  1. odoc with-doc
  2. re2 >= "v0.16" & with-test
  3. ppx_expect >= "v0.16" & with-test
  4. ppx_inline_test >= "v0.16" & with-test
  5. core >= "v0.16" & with-test
  6. bisect_ppx with-test
  7. async >= "v0.16" & with-test

Optional Dependencies

None

Used by

None

Conflicts

None

Build status

Results of building little_logger with each compiler on check.ci.ocaml.org, run of against opam-repository 7cdc698. 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.3.0 (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