package async_log
Module Async_log.GlobalSource
This function can be called to generate logging modules with the Log.t lazily instantiated, and prepopulated in the arguments.
This module provides functions like Global.sexp which logs without needing to provide a Log.t. At this point, it's recommended to use ppx_log instead.
include S
Source
val get_transform :
unit ->
(Async_log_kernel.Message_event.t -> Async_log_kernel.Message_event.t) optionSource
val set_transform :
(Async_log_kernel.Message_event.t -> Async_log_kernel.Message_event.t) option ->
unitFunctions that operate on a given log. In this case they operate on a single log global to the module.
Source
val raw :
?time:Core.Time_float.t ->
?tags:(string * string) list ->
('a, unit, string, unit) Core.format4 ->
'aSource
val info :
?time:Core.Time_float.t ->
?tags:(string * string) list ->
('a, unit, string, unit) Core.format4 ->
'aSource
val error :
?time:Core.Time_float.t ->
?tags:(string * string) list ->
('a, unit, string, unit) Core.format4 ->
'aSource
val debug :
?time:Core.Time_float.t ->
?tags:(string * string) list ->
('a, unit, string, unit) Core.format4 ->
'aSource
val printf :
?level:Async_log_kernel.Level.t ->
?time:Core.Time_float.t ->
?tags:(string * string) list ->
('a, unit, string, unit) Core.format4 ->
'aSource
val sexp :
?level:Async_log_kernel.Level.t ->
?time:Core.Time_float.t ->
?tags:(string * string) list ->
Core.Sexp.t ->
unitSource
val string :
?level:Async_log_kernel.Level.t ->
?time:Core.Time_float.t ->
?tags:(string * string) list ->
string ->
unitSource
val structured_message :
?level:Async_log_kernel.Level.t ->
?time:Core.Time_float.t ->
?tags:(string * string) list ->
Ppx_log_types.Message_data.t ->
Ppx_log_types.Message_source.t ->
unitSource
val surround_s :
on_subsequent_errors:[ `Call of exn -> unit | `Log | `Raise ] ->
?level:Async_log_kernel.Level.t ->
?time:Core.Time_float.t ->
?tags:(string * string) list ->
Core.Sexp.t ->
(unit -> 'a Async_kernel.Deferred.t) ->
'a Async_kernel.Deferred.tSource
val surroundf :
on_subsequent_errors:[ `Call of exn -> unit | `Log | `Raise ] ->
?level:Async_log_kernel.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