Up

Module Blocking

Signature

Async programs often have a non-Async portion that runs before the scheduler begins to capture command line options, do setup, read configs, etc. This module provides limited global logging functions to be used during that period. Calling these functions after the scheduler has started will raise an exception. They otherwise behave similarly to the logging functions in the Async world.

module Output : sig .. end
val level : unit -> Level.t
val set_level : Level.t -> unit
val set_output : Output.t -> unit
val raw : ?time:Core.Std.Time.t -> ?tags:(string * string) list -> ('a, unit, string, unit) Core.Std.format4 -> 'a

raw printf like logging for raw (no level) messages. Raw messages are still output with a timestamp.

val info : ?time:Core.Std.Time.t -> ?tags:(string * string) list -> ('a, unit, string, unit) Core.Std.format4 -> 'a

info printf like logging at the `Info log level

val error : ?time:Core.Std.Time.t -> ?tags:(string * string) list -> ('a, unit, string, unit) Core.Std.format4 -> 'a

error printf like logging at the `Info log level

val debug : ?time:Core.Std.Time.t -> ?tags:(string * string) list -> ('a, unit, string, unit) Core.Std.format4 -> 'a

error printf like logging at the `Info log level