Log functions
val msg : Tr1Logs_Std.Logs.level -> 'a Tr1Logs_Std.Logs.log
See Logs.msg
.
val app : 'a Tr1Logs_Std.Logs.log
app
is msg App
.
val err : 'a Tr1Logs_Std.Logs.log
err
is msg Error
.
val warn : 'a Tr1Logs_Std.Logs.log
warn
is msg Warning
.
val info : 'a Tr1Logs_Std.Logs.log
info
is msg Info
.
val debug : 'a Tr1Logs_Std.Logs.log
debug
is msg Debug
.
val kmsg :
(unit -> 'b) ->
Tr1Logs_Std.Logs.level ->
('a, 'b) Tr1Logs_Std.Logs.msgf ->
'b
See Logs.kmsg
.
Logging result
value Error
s
val on_error :
?level:Tr1Logs_Std.Logs.level ->
?header:string ->
?tags:Tr1Logs_Std.Logs.Tag.set ->
pp:(Format.formatter -> 'b -> unit) ->
use:('b -> 'a) ->
('a, 'b) result ->
'a
See Logs.on_error
.
val on_error_msg :
?level:Tr1Logs_Std.Logs.level ->
?header:string ->
?tags:Tr1Logs_Std.Logs.Tag.set ->
use:(unit -> 'a) ->
('a, [ `Msg of string ]) result ->
'a
See Logs.on_error_msg
.