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 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, Format.formatter, unit, unit) format4 -> 'a;
}
val default : t

Default logging: immediate output to stderr

val set : t -> unit

Replace the reporting printer.

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