module Report:Module providing functions to print errors in a way the compilation mode of Emacs understands while handling verbosity level and locations.sig
..end
exception Error
val verbosity : int Pervasives.ref
val nlogf : int -> ('a, Format.formatter, unit, unit) Pervasives.format4 -> 'a
nflogf n ff f <args>
prints a log message like Format.fprintf
if n
is greater or equal to verbosity
.
Starting from level 4, the message is also indented from 2*(n-3) spaces.
val warning_loc : Location.t -> ('a, Format.formatter, unit, unit) Pervasives.format4 -> 'a
val error_loc : Location.t -> ('a, Format.formatter, unit, 'b) Pervasives.format4 -> 'a
Error
.val silent : (unit -> 'a) -> 'a
silent f
executes function f
without printing any log message.