Module Log.Logs

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" ])
  ;;
type msgf = ?header:string -> ?tags:Logs.Tag.set -> Pplumbing_pp_tty.Pp_tty.t list -> unit
type log = (msgf -> unit) -> unit
val msg : ?src:src -> level -> log
val app : ?src:src -> log
val err : ?src:src -> log
val warn : ?src:src -> log
val info : ?src:src -> log
val debug : ?src:src -> log