Skip to content

mooreryan/little_logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

27 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

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:

About

A tiny, little logger for OCaml ๐Ÿ’–

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE.txt
MIT
LICENSE-MIT.txt

Stars

Watchers

Forks

Packages

No packages published