package easy_logging

  1. Overview
  2. Docs
Module to easily log messages

Install

Dune Dependency

Authors

Maintainers

Sources

v0.3
md5=f2c40e821571792fc46dce2e97b2154b
sha512=15bbf841d4a7c5ff7c7d0af60176e6479a2ea1bf97e882d1c5bcf0adc7ccf990d947999705e63717353a86c8e87aa473e830629631b75501894389ca99b9f273

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: 27 Mar 2019

README

README.md

Logging module for OCaml.

Quick start :

open Easy_logging
logger = Logging.make_logger "my_logger" 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

OCaml

Innovation. Community. Security.