Log functions
The type for Lwt log functions. The returned thread only proceeds once the log operation is over. See Logs.log
.
val msg : ?src:Logs.src -> Logs.level -> 'a log
See Logs.msg
.
See Logs.debug
.
val kmsg : (unit -> 'b Lwt.t) -> ?src:Logs.src -> Logs.level -> ('a, 'b Lwt.t) Logs.msgf -> 'b Lwt.t
See Logs.kmsg
.
Logging value Error
s
val on_error : ?src:Logs.src -> ?level:Logs.level -> ?header:string -> ?tags:Logs.Tag.set -> pp:(Stdlib.Format.formatter -> 'b -> unit) -> use:('b -> 'a Lwt.t) -> ('a, 'b) Stdlib.result Lwt.t -> 'a Lwt.t
See Logs.on_error
.
val on_error_msg : ?src:Logs.src -> ?level:Logs.level -> ?header:string -> ?tags:Logs.Tag.set -> use:(unit -> 'a Lwt.t) -> ('a, [ `Msg of string ]) Stdlib.result Lwt.t -> 'a Lwt.t
See Logs.on_error_msg
.
Source specific log functions
module type LOG = sig ... end
src_log src
is a set of logging functions for src
.