module Log:sig..end
type kind =
| |
Result |
|||
| |
Feedback |
|||
| |
Debug |
|||
| |
Warning |
|||
| |
Error |
|||
| |
Failure |
(* |
Since Beryllium-20090601-beta1
| *) |
type event = {
|
evt_kind : |
|
evt_plugin : |
|
evt_source : |
|
evt_message : |
type'apretty_printer =?current:bool ->
?source:Lexing.position ->
?emitwith:(event -> unit) ->
?echo:bool ->
?once:bool ->
?append:(Format.formatter -> unit) ->
('a, Format.formatter, unit) Pervasives.format -> 'a
current is false (default for most of the channels),
no location is output. When it is true, the last registred location
is used as current (see Cil_const.CurrentLoc).source is the location to be output. If nil, current is used to
determine if a location should be outputemitwith function which is called each time an event is processedecho is true if the event should be output somewhere in addition
to stdoutappend adds some actions performed on the formatter after the event
has been processed.type('a, 'b)pretty_aborter =?current:bool ->
?source:Lexing.position ->
?echo:bool ->
?append:(Format.formatter -> unit) ->
('a, Format.formatter, unit, 'b) Pervasives.format4 -> 'a
exception AbortError of string
exception AbortFatal of string
exception FeatureRequest of string * string
not_yet_implemented.
You may catch FeatureRequest(p,r) to support degenerated behavior.
The responsible plugin is 'p' and the feature request is 'r'.typecategory = privatestring
typeontty =[ `Feedback | `Message | `Silent | `Transient ]
module Category_set:FCSet.Swith type elt = category
module type Messages =sig..end
module Register:functor (P:sigval channel :stringval label :stringval verbose_atleast :int -> boolval debug_atleast :int -> boolend) ->Messages
val set_echo : ?plugin:string -> ?kind:kind list -> bool -> unitval add_listener : ?plugin:string -> ?kind:kind list -> (event -> unit) -> unitval echo : event -> unitval notify : event -> unittype channel
val new_channel : string -> channel
type prefix =
| |
Label of |
| |
Prefix of |
| |
Indent of |
val log_channel : channel -> ?kind:kind -> ?prefix:prefix -> 'a pretty_printerval with_log_channel : channel ->
(event -> 'b) ->
?kind:kind -> ?prefix:prefix -> ('a, 'b) pretty_aborterval kernel_channel_name : stringval kernel_label_name : stringval get_current_source : unit -> Lexing.positionval clean : unit -> unitval null : Format.formatterval nullprintf : ('a, Format.formatter, unit) Pervasives.format -> 'aval with_null : (unit -> 'b) -> ('a, Format.formatter, unit, 'b) Pervasives.format4 -> 'aval set_output : ?isatty:bool -> (string -> int -> int -> unit) -> (unit -> unit) -> unitval print_on_output : (Format.formatter -> unit) -> unit
Can not be recursively invoked.
Since Beryllium-20090901
Change in Nitrogen-20111001: signature changed
Consult the Plugin Development Guide for additional details.
val print_delayed : (Format.formatter -> unit) -> unitprint_on_output, except
that message echo is not delayed until text material is actually
written. This gives an chance for formatters to emit messages
before actual pretty printing.
Can not be recursively invoked.
Since Beryllium-20090901
Change in Nitrogen-20111001: signature changed
Consult the Plugin Development Guide for additional details.