package riot

  1. Overview
  2. Docs
An actor-model multi-core scheduler for OCaml 5

Install

Dune Dependency

Authors

Maintainers

Sources

riot-0.0.5.tbz
sha256=01b7b82ccc656b12b7315960d9df17eb4682b8f1af68e9fee33171fee1f9cf88
sha512=d8831d8a75fe43a7e8d16d2c0bb7d27f6d975133e17c5dd89ef7e575039c59d27c1ab74fbadcca81ddfbc0c74d1e46c35baba35ef825b36ac6c4e49d7a41d0c2

doc/riot.lib/Lib/Logger/index.html

Module Lib.LoggerSource

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
Sourcemodule Formatter : sig ... end
Sourceval name : string
Sourceval default_opts : opts
Sourceval start : unit -> (Runtime.Pid.t, 'a) result
OCaml

Innovation. Community. Security.