package async_log

  1. Overview
  2. Docs

Module Global.MakeSource

This function can be called to generate logging modules with the Log.t lazily instantiated, and prepopulated in the arguments.

Parameters

Signature

Sourceval level : unit -> Level.t
Sourceval set_level : Level.t -> unit
Sourceval set_output : Output.t list -> unit
Sourceval get_output : unit -> Output.t list
Sourceval set_on_error : [ `Raise | `Call of Core.Error.t -> unit ] -> unit
Sourceval get_time_source : unit -> Async_kernel.Synchronous_time_source.t
Sourceval set_time_source : Async_kernel.Synchronous_time_source.t -> unit
Sourceval get_transform : unit -> (Message_event.t -> Message_event.t) option
Sourceval set_transform : (Message_event.t -> Message_event.t) option -> unit
Sourceval would_log : Level.t option -> bool
Sourceval set_level_via_param : unit -> unit Core.Command.Param.t

Functions that operate on a given log. In this case they operate on a single log global to the module.

Sourceval raw : ?time:Core.Time_float.t -> ?tags:(string * string) list -> ('a, unit, string, unit) Core.format4 -> 'a
Sourceval info : ?time:Core.Time_float.t -> ?tags:(string * string) list -> ('a, unit, string, unit) Core.format4 -> 'a
Sourceval error : ?time:Core.Time_float.t -> ?tags:(string * string) list -> ('a, unit, string, unit) Core.format4 -> 'a
Sourceval debug : ?time:Core.Time_float.t -> ?tags:(string * string) list -> ('a, unit, string, unit) Core.format4 -> 'a
Sourceval flushed : unit -> unit Async_kernel.Deferred.t
Sourceval printf : ?level:Level.t -> ?time:Core.Time_float.t -> ?tags:(string * string) list -> ('a, unit, string, unit) Core.format4 -> 'a
Sourceval raw_s : ?time:Core.Time_float.t -> ?tags:(string * string) list -> Core.Sexp.t -> unit
Sourceval info_s : ?time:Core.Time_float.t -> ?tags:(string * string) list -> Core.Sexp.t -> unit
Sourceval error_s : ?time:Core.Time_float.t -> ?tags:(string * string) list -> Core.Sexp.t -> unit
Sourceval debug_s : ?time:Core.Time_float.t -> ?tags:(string * string) list -> Core.Sexp.t -> unit
Sourceval sexp : ?level:Level.t -> ?time:Core.Time_float.t -> ?tags:(string * string) list -> Core.Sexp.t -> unit
Sourceval string : ?level:Level.t -> ?time:Core.Time_float.t -> ?tags:(string * string) list -> string -> unit
Sourceval structured_message : ?level:Level.t -> ?time:Core.Time_float.t -> ?tags:(string * string) list -> Ppx_log_types.Message_data.t -> Ppx_log_types.Message_source.t -> unit
Sourceval message : Message.t -> unit
Sourceval message_event : Message_event.t -> unit
Sourceval surround_s : on_subsequent_errors:[ `Call of exn -> unit | `Log | `Raise ] -> ?level:Level.t -> ?time:Core.Time_float.t -> ?tags:(string * string) list -> Core.Sexp.t -> (unit -> 'a Async_kernel.Deferred.t) -> 'a Async_kernel.Deferred.t
Sourceval surroundf : on_subsequent_errors:[ `Call of exn -> unit | `Log | `Raise ] -> ?level:Level.t -> ?time:Core.Time_float.t -> ?tags:(string * string) list -> ('a, unit, string, (unit -> 'b Async_kernel.Deferred.t) -> 'b Async_kernel.Deferred.t) Core.format4 -> 'a
Sourcemodule For_testing : sig ... end
OCaml

Innovation. Community. Security.