Log.Logs
Interface in the style of Logs
.
These call the functions of the same name from Logs
. They are direct translation, where the only difference is that the format is a pp value instead.
For example, the following Logs
style logging:
let hello ?src () = Logs.info ?src (fun m -> m "Hello %s!" "World")
Can be written with Log.Logs
as:
let hello ?src () =
Log.Logs.info ?src (fun m -> m [ Pp.textf "Hello %s!" "World" ])
;;