package logs

  1. Overview
  2. Docs
Logging infrastructure for OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

logs-0.7.0.tbz
sha256=86f4a02807eb1a297aae44977d9f61e419c31458a5d7b23c6f55575e8e69d5ca
md5=2bf021ca13331775e33cf34ab60246f7

doc/logs/Logs/module-type-LOG/index.html

Module type Logs.LOGSource

The type for source specific logging functions.

Log functions

Sourceval msg : level -> 'a log
Sourceval app : 'a log

app is msg App.

Sourceval err : 'a log

err is msg Error.

Sourceval warn : 'a log

warn is msg Warning.

Sourceval info : 'a log

info is msg Info.

Sourceval debug : 'a log

debug is msg Debug.

Sourceval kmsg : (unit -> 'b) -> level -> ('a, 'b) msgf -> 'b

Logging result value Errors

Sourceval on_error : ?level:level -> ?header:string -> ?tags:Tag.set -> pp:(Format.formatter -> 'b -> unit) -> use:('b -> 'a) -> ('a, 'b) result -> 'a
Sourceval on_error_msg : ?level:level -> ?header:string -> ?tags:Tag.set -> use:(unit -> 'a) -> ('a, [ `Msg of string ]) result -> 'a