package pplumbing

  1. Overview
  2. Docs
Utility libraries to use with [pp]

Install

dune-project
 Dependency

Authors

Maintainers

Sources

pplumbing-0.0.14.tbz
sha256=ed7eaba180378a59719e9af63ccdc89dde8e0a20f2cba420abb0080b0bc4a868
sha512=f168c37c1acd38c92e5b6d59321da4021195b6ddc49dde82de70e9282b55042621bea1b84a677d57f83604c06d6ee9c790b683fd589cd2097ab8f00c293f56af

doc/pplumbing.log/Log/Logs/index.html

Module Log.LogsSource

Interface in the style of Logs.

These call the functions of the same name from Logs. They are direct translation, where the only difference is that the format is a pp value instead.

For example, the following Logs style logging:

  let hello ?src () = Logs.info ?src (fun m -> m "Hello %s!" "World")

Can be written with Log.Logs as:

  let hello ?src () =
    Log.Logs.info ?src (fun m -> m [ Pp.textf "Hello %s!" "World" ])
  ;;
Sourcetype msgf = ?header:string -> ?tags:Logs.Tag.set -> Pp_tty.t list -> unit
Sourcetype log = (msgf -> unit) -> unit
Sourceval msg : ?src:src -> level -> log
Sourceval app : ?src:src -> log
Sourceval err : ?src:src -> log
Sourceval warn : ?src:src -> log
Sourceval info : ?src:src -> log
Sourceval debug : ?src:src -> log
OCaml

Innovation. Community. Security.