module Output:Since Carbon-20101201Log.Messages
val verbose_atleast : int -> bool
val debug_atleast : int -> bool
val result : ?level:int -> 'a Log.pretty_printer
val feedback : ?level:int -> 'a Log.pretty_printer
val debug : ?level:int -> 'a Log.pretty_printer
val warning : 'a Log.pretty_printer
val error : 'a Log.pretty_printer
val abort : ('a, 'b) Log.pretty_aborter
AbortError
with the channel name.val failure : 'a Log.pretty_printer
val fatal : ('a, 'b) Log.pretty_aborter
AbortFatal
with the channel name.val verify : bool -> ('a, bool) Log.pretty_aborter
true
, return true
and do nothing else,
otherwise, send the message on the fatal channel and return
false
.
The intended usage is: assert (verify e "Bla...") ;
.
Since Beryllium-20090601-beta1
val not_yet_implemented : ('a, Format.formatter, unit, 'b) Pervasives.format4 -> 'a
FeatureRequest
but do not send any message.
If the exception is not catched, Frama-C displays a feature-request
message to the user.val deprecated : string -> now:string -> ('a -> 'b) -> 'a -> 'b
deprecated s ~now f
indicates that the use of f
of name s
is now
deprecated. It should be replaced by now
.val with_result : (Log.event -> 'a) -> ('b, 'a) Log.pretty_aborter
val with_warning : (Log.event -> 'a) -> ('b, 'a) Log.pretty_aborter
val with_error : (Log.event -> 'a) -> ('b, 'a) Log.pretty_aborter
val with_failure : (Log.event -> 'a) -> ('b, 'a) Log.pretty_aborter
val log : ?kind:Log.kind -> ?verbose:int -> ?debug:int -> 'a Log.pretty_printer
Result
. Use cases (with
n,m > 0
):log ~verbose:n
: emit the message only when verbosity level is
at least n
.log ~debug:n
: emit the message only when debugging level is
at least n
.log ~verbose:n ~debug:m
: any debugging or verbosity level is
sufficient.val with_log : (Log.event -> 'a) -> ?kind:Log.kind -> ('b, 'a) Log.pretty_aborter
val register : Log.kind -> (Log.event -> unit) -> unit
val register_tag_handlers : (string -> string) * (string -> string) -> unit