Module type Signatures.LOG
Module for modulating the logging output with the logging level.
val level : int Stdlib.ref
Current logging (debugging) level.
val dprintf : int -> ('a, Stdlib.Format.formatter, unit) Stdlib.format -> 'a
dprintf level fmt args...
formats the logging informationfmt
with the argumentsargs...
on the logging output if the logging level is greater than or equal tolevel
. The default level is 1. More obscure debugging information should have a higher logging level. Your formats are wrapped inside these two formats"@[<2>"
and"@]@."
.
val eprintf : ('a, Stdlib.Format.formatter, unit) Stdlib.format -> 'a
Equivalent to calling
dprintf
with a level< 0
.
val raw_dprintf : int -> ('a, Stdlib.Format.formatter, unit) Stdlib.format -> 'a
Same as dprintf but without the format wrapping.