package async_unix

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Log.BlockingSource

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.

There are more detailed comments for the API below near the non-blocking signatures.

Sourcemodule Output : sig ... end
Sourceval level : unit -> Level.t
Sourceval set_level : Level.t -> unit
Sourceval set_output : Output.t -> unit
Sourceval set_time_source : Async_kernel.Synchronous_time_source.t -> unit
Sourceval set_transform : (Message.t -> Message.t) option -> unit
Sourceval raw : ?time:Async_unix__.Import.Time.t -> ?tags:(string * string) list -> ('a, unit, string, unit) Core.format4 -> 'a
Sourceval info : ?time:Async_unix__.Import.Time.t -> ?tags:(string * string) list -> ('a, unit, string, unit) Core.format4 -> 'a
Sourceval error : ?time:Async_unix__.Import.Time.t -> ?tags:(string * string) list -> ('a, unit, string, unit) Core.format4 -> 'a
Sourceval debug : ?time:Async_unix__.Import.Time.t -> ?tags:(string * string) list -> ('a, unit, string, unit) Core.format4 -> 'a
Sourceval printf : ?level:Level.t -> ?time:Async_unix__.Import.Time.t -> ?tags:(string * string) list -> ('a, unit, string, unit) Core.format4 -> 'a
Sourceval raw_s : ?time:Async_unix__.Import.Time.t -> ?tags:(string * string) list -> Core.Sexp.t -> unit
Sourceval info_s : ?time:Async_unix__.Import.Time.t -> ?tags:(string * string) list -> Core.Sexp.t -> unit
Sourceval error_s : ?time:Async_unix__.Import.Time.t -> ?tags:(string * string) list -> Core.Sexp.t -> unit
Sourceval debug_s : ?time:Async_unix__.Import.Time.t -> ?tags:(string * string) list -> Core.Sexp.t -> unit
Sourceval sexp : ?level:Level.t -> ?time:Async_unix__.Import.Time.t -> ?tags:(string * string) list -> Core.Sexp.t -> unit
Sourceval surround_s : ?level:Level.t -> ?time:Async_unix__.Import.Time.t -> ?tags:(string * string) list -> Core.Sexp.t -> (unit -> 'a) -> 'a
Sourceval surroundf : ?level:Level.t -> ?time:Async_unix__.Import.Time.t -> ?tags:(string * string) list -> ('a, unit, string, (unit -> 'b) -> 'b) Core.format4 -> 'a
OCaml

Innovation. Community. Security.