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 ... endval level : unit ‑> Level.tval set_level : Level.t ‑> unitval set_output : Output.t ‑> unitval raw : ?time:Core.Time.t ‑> ?tags:(string * string) list ‑> ('a, unit, string, unit) Core.format4 ‑> 'araw printf like logging for raw (no level) messages. Raw messages are still
output with a timestamp.
val info : ?time:Core.Time.t ‑> ?tags:(string * string) list ‑> ('a, unit, string, unit) Core.format4 ‑> 'ainfo printf like logging at the `Info log level
val error : ?time:Core.Time.t ‑> ?tags:(string * string) list ‑> ('a, unit, string, unit) Core.format4 ‑> 'aerror printf like logging at the `Error log level
val debug : ?time:Core.Time.t ‑> ?tags:(string * string) list ‑> ('a, unit, string, unit) Core.format4 ‑> 'adebug printf like logging at the `Debug log level
val sexp : ?level:Level.t ‑> ?time:Core.Time.t ‑> ?tags:(string * string) list ‑> Core.Sexp.t ‑> unitsexp logging of sexps.
val surround_s : ?level:Level.t ‑> ?time:Core.Time.t ‑> ?tags:(string * string) list ‑> Core.Sexp.t ‑> (unit ‑> 'a) ‑> 'asurround_s logs before and after. See more detailed comment for async surround.
val surroundf : ?level:Level.t ‑> ?time:Core.Time.t ‑> ?tags:(string * string) list ‑> ('a, unit, string, (unit ‑> 'b) ‑> 'b) Core.format4 ‑> 'asurroundf logs before and after. See more detailed comment for async surround.