package riot

  1. Overview
  2. Docs
include module type of struct include Logger end
type opts = Logger.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 = Logger.level =
  1. | Debug
  2. | Error
  3. | Info
  4. | Trace
  5. | Warn
module Level = Logger.Level
type log = Logger.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 = Logger.Intf
module type Namespace = Logger.Namespace
module Make = Logger.Make
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
module Formatter : sig ... end
val name : string
val default_opts : opts
val start : unit -> (Runtime.Pid.t, 'a) result
OCaml

Innovation. Community. Security.