package merlin-lib

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Log module * * 1. Provide functions to log arbitrary messages, filtered according to a * section and a verbosity level. * * 2. Allow to setup a destination for these log messages. * *

val log : section:string -> title:string -> ('b, unit, string, unit) format4 -> 'b
val fmt : unit -> (Format.formatter -> unit) -> string
val json : unit -> (unit -> Std.json) -> string
val exn : unit -> exn -> string
val log_flush : unit -> unit
type notification = {
  1. section : string;
  2. msg : string;
}
val notify : section:string -> ('b, unit, string, unit) format4 -> 'b
val with_notifications : notification list ref -> (unit -> 'a) -> 'a
val with_log_file : string option -> ?sections:string list -> (unit -> 'a) -> 'a
type 'a printf = title:string -> ('a, unit, string, unit) format4 -> 'a
type logger = {
  1. log : 'a. 'a printf;
}
val for_section : string -> logger