package easy_logging

  1. Overview
  2. Docs
Module to easily log messages

Install

Dune Dependency

Authors

Maintainers

Sources

v0.2
md5=16727b9601e8026716e3831b974fd5e0
sha512=ca6f6709624a0f96db4c1c99071d6758078c966b30f8952f41057c9dbce812bdbd4133ccf4ba579c98717d8353d1ce51bb6c84aee0980bd6455681415e9d62a3

Description

Logging infrastructure inspired by the Python logging module. The aim of this module is to provide a quick and easy to use logging infrastructure.

It has the following features :

  • one line logger creation
  • log messages are either [string] or [string lazy_t]
  • log level adaptable at runtime from anywhere in the program
  • handlers associated to each logger will format and treat the message independantly.
  • annotage log messages with tags

Published: 23 Mar 2019

README

README.md

Logging module for OCaml.

Quick start :

open Easy_logging
logger = Logging.make_logger "my_logger" (Some Debug) [Cli Debug];;
logger#info "log_message";;

See documentation at https://sapristi.github.io/easy_logging/easy_logging

Dependencies (3)

  1. ppx_deriving >= "4.2" & < "5.0"
  2. dune >= "1.0"
  3. ocaml >= "4.04.0"

Dev Dependencies

None

Used by (1)

  1. little_logger < "0.3.0"

Conflicts

None