logger
Logger
lib_net
riot
riot.core
riot.lib
riot.log
riot.net
riot.runtime
riot.scheduler
riot.util
time
type opts = {
print_source : bool;
print_time : bool;
color_output : bool;
}
type ('a, 'b) logger_format = (('a, Stdlib.Format.formatter, unit, 'b) Stdlib.format4 -> 'a) -> 'b
type namespace = string list
type level =
| Debug
| Error
| Info
| Trace
| Warn
module Level : sig ... end
type log = {
level : level;
ts : Ptime.t;
src : Core.Scheduler_uid.t * Core.Pid.t;
ns : namespace;
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