package plebeia

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

Module Plebeia.LogSource

Sourcetype level =
  1. | Debug
  2. | Info
  3. | Notice
  4. | Warning
  5. | Error
  6. | Fatal
Sourceval 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.

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

Default logging: immediate output to stderr

Sourceval set : t -> unit

Replace the reporting printer.

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

Innovation. Community. Security.