Module Log.Reporter

Reporting.

type t = {
  1. kmsg : 'a 'b. (unit -> 'b) -> level -> ('a, 'b) msgf -> 'b;
}

The type for log message reporters. kmsg is never invoked with a level of Quiet or with a level smaller than the reporting level.

val nop : t

nop is a logger that reports nothing.

val default : t

default is the default reporter. It logs Log.level.Stdout messages on Fmt.stdout and all other messages on Fmt.stderr.

val get : unit -> t

get () is the reporter.

val set : t -> unit

set r sets the reporter to r.