package async_log
Module Async_log_kernel.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
Functions 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:Level.t ->
?time:Core.Time_float.t ->
?tags:(string * string) list ->
('a, unit, string, unit) Core.format4 ->
'aSource
val sexp :
?level:Level.t ->
?time:Core.Time_float.t ->
?tags:(string * string) list ->
Core.Sexp.t ->
unitSource
val string :
?level:Level.t ->
?time:Core.Time_float.t ->
?tags:(string * string) list ->
string ->
unitSource
val 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 ->
unitSource
val 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.tSource
val 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