Library
Module
Module type
Parameter
Class
Class type
Bindings to the client
val enter :
?cs_depth:int ->
__FILE__:string ->
__LINE__:int ->
?__FUNCTION__:string ->
string ->
span
enter ~__FILE__ ~__LINE__ name
enters a span.
val add_text : span -> string -> unit
add_text span s
annotates the span with text s
. This can be called several times on the same span.
val add_text_f :
span ->
((('a, Format.formatter, unit, unit) format4 -> 'a) -> unit) ->
unit
Formatted version of add_text
.
Usage: add_text_f span (fun k -> k "some %s message! (%d/100)" "formatted" 100)
.
val add_value : span -> int64 -> unit
add_value span v
annotates the span with a numeric value (which should be unsigned).
val set_color : span -> int -> unit
set_color span c
sets the color of the span.
c
is an integer that represents a color using a RGB triple as follows: 0xRRGGBB
.
val with_ :
?cs_depth:int ->
__FILE__:string ->
__LINE__:int ->
?__FUNCTION__:string ->
string ->
(span -> 'a) ->
'a
Run function within a span. See enter
for more details about the parameters.
val message_f :
((('a, Format.formatter, unit, unit) format4 -> 'a) -> unit) ->
unit
Send a formatted message. Usage: message_f (fun k -> k "hello %s %d" "world" 42)