package plebeia

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type level =
  1. | Debug
  2. | Info
  3. | Notice
  4. | Warning
  5. | Error
  6. | Fatal
val threshold : level Stdlib.ref

Level threshold for the default printer. Report only events equal to or more seirous than this will be printed. By default, set at Notice.

Note that this is only for the default printer.

type t = {
  1. f : 'a. level -> ('a, Stdlib.Format.formatter, unit, unit) Stdlib.format4 -> 'a;
}
val default : t

Default logging: immediate output to stderr

val set : t -> unit

Replace the reporting printer.

val log : level -> ('a, Stdlib.Format.formatter, unit, unit) Stdlib.format4 -> 'a
val debug : ('a, Stdlib.Format.formatter, unit, unit) Stdlib.format4 -> 'a
val info : ('a, Stdlib.Format.formatter, unit, unit) Stdlib.format4 -> 'a
val notice : ('a, Stdlib.Format.formatter, unit, unit) Stdlib.format4 -> 'a
val warning : ('a, Stdlib.Format.formatter, unit, unit) Stdlib.format4 -> 'a
val error : ('a, Stdlib.Format.formatter, unit, unit) Stdlib.format4 -> 'a
val fatal : ('a, Stdlib.Format.formatter, unit, unit) Stdlib.format4 -> 'a
val lwt_debug : ('a, Stdlib.Format.formatter, unit, unit Lwt.t) Stdlib.format4 -> 'a
val lwt_info : ('a, Stdlib.Format.formatter, unit, unit Lwt.t) Stdlib.format4 -> 'a
val lwt_notice : ('a, Stdlib.Format.formatter, unit, unit Lwt.t) Stdlib.format4 -> 'a
val lwt_warning : ('a, Stdlib.Format.formatter, unit, unit Lwt.t) Stdlib.format4 -> 'a
val lwt_error : ('a, Stdlib.Format.formatter, unit, unit Lwt.t) Stdlib.format4 -> 'a
val lwt_fatal : ('a, Stdlib.Format.formatter, unit, unit Lwt.t) Stdlib.format4 -> 'a
OCaml

Innovation. Community. Security.