package riot

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

Innovation. Community. Security.