package easy_logging
Module to log messages. Aimed at being both powerful and easy to use
Install
Dune Dependency
Authors
Maintainers
Sources
v0.5
md5=12fb8044e96ea1ace1cc465c766cde7e
sha512=17ab30169c54a13f3aff8605bd1acaffb911c6882fa3a0c7ad6c14b2dcbd3c08b0f2568fb0ec500ae6e741be926a49fb73954d2ccfedcd274463ffed20149b02
doc/README.html
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
Changelog
Version 0.4
- printf style logging is now the default
simplifed configuration in case of multiple loggers (and closer to the python module) : the loggers form a tree (based on their name, dots indicating descendence)
- log items are passed to the handlers of a logger’s ancestors (so that few handlers need initialisation) (possible to override)
- loggers inherit the level of their ancestor if not set explicitely
- an additional package easy_logging_yojson provides initialisation of loggers from the json format (with ppx_deriving_yojson), so that configuration can be fully done outside the code.
Version 0.5
- Renamed the Default_handlers module to handlers
- tag type in Handlers is now string (was unit)
- added the possibility to add filters to handlers
- added tag_generator feature to loggers, to automatically add tags to all messages passed to a logger
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page