package riot

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

Module LoggerSource

Sourcetype opts = {
  1. print_source : bool;
  2. print_time : bool;
  3. color_output : bool;
}
Sourcetype ('a, 'b) logger_format = (('a, Stdlib.Format.formatter, unit, 'b) Stdlib.format4 -> 'a) -> 'b
Sourcetype namespace = string list
Sourcetype level =
  1. | Debug
  2. | Error
  3. | Info
  4. | Trace
  5. | Warn
Sourcemodule Level : sig ... end
Sourcetype log = {
  1. level : level;
  2. ts : Ptime.t;
  3. src : Core.Scheduler_uid.t * Core.Pid.t;
  4. ns : namespace;
  5. message : string;
}
Sourceval set_on_log : (log -> unit) -> unit
Sourcemodule type Intf = sig ... end
Sourcemodule type Namespace = sig ... end
Sourcemodule Make (_ : Namespace) : Intf
Sourceval set_log_level : level option -> unit
Sourceval debug : ('a, unit) logger_format -> unit
Sourceval error : ('a, unit) logger_format -> unit
Sourceval info : ('a, unit) logger_format -> unit
Sourceval trace : ('a, unit) logger_format -> unit
Sourceval warn : ('a, unit) logger_format -> unit
OCaml

Innovation. Community. Security.