]> matita.cs.unibo.it Git - helm.git/blob - helm/software/lambda-delta/lib/log.mli
43e81191597a844771504b62dfcd4822f5cda966
[helm.git] / helm / software / lambda-delta / lib / log.mli
1 (*
2     ||M||  This file is part of HELM, an Hypertextual, Electronic        
3     ||A||  Library of Mathematics, developed at the Computer Science     
4     ||T||  Department, University of Bologna, Italy.                     
5     ||I||                                                                
6     ||T||  HELM is free software; you can redistribute it and/or         
7     ||A||  modify it under the terms of the GNU General Public License   
8     \   /  version 2 or (at your option) any later version.              
9      \ /   This software is distributed as is, NO WARRANTY.              
10       V_______________________________________________________________ *)
11
12 type ('a, 'b) item = Term of 'a * 'b
13                    | Context of 'a
14                    | Warn of string
15                    | String of string
16
17 type ('a, 'b) specs = {
18    pp_term   : 'a -> Format.formatter -> 'b -> unit;
19    pp_context: Format.formatter -> 'a -> unit
20 }
21
22 val level: int ref
23
24 val warn: string -> unit
25
26 val box: unit -> unit
27
28 val unbox: unit -> unit
29
30 val flush: unit -> unit
31
32 val box_err: unit -> unit
33
34 val flush_err: unit -> unit
35
36 val log: ('a, 'b) specs -> int -> ('a, 'b) item list -> unit
37
38 val error: ('a, 'b) specs -> ('a, 'b) item list -> unit
39
40 val items1: string -> ('a, 'b) item list
41
42 val ct_items1: string -> 'a -> 'b -> ('a, 'b) item list
43
44 val ct_items2: string -> 'a -> 'b -> string -> 'a -> 'b -> ('a, 'b) item list