]> matita.cs.unibo.it Git - helm.git/blob - helm/software/helena/src/lib/log.mli
df867a1663c5ca6e0d3540685269577299b3e76a
[helm.git] / helm / software / helena / src / 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                    | LEnv of 'a
14                    | Warn of string
15                    | Uri  of NUri.uri
16                    | Flush
17
18 type ('a, 'b) message = ('a, 'b) item list
19
20 type ('a, 'b) specs = {
21    pp_term: 'a -> out_channel -> 'b -> unit;
22    pp_lenv: out_channel -> 'a -> unit
23 }
24
25 val specs: (unit, unit) specs
26
27 val log: ('a, 'b) specs -> int -> ('a, 'b) message -> unit
28
29 val error: ('a, 'b) specs -> ('a, 'b) message -> unit
30
31 val items1: string -> ('a, 'b) message
32
33 val t_items1: string -> 'a -> 'b -> ('a, 'b) message
34
35 val et_items1:
36    string -> 'a -> string -> 'b -> ('a, 'b) message
37
38 val et_items2:
39    string -> 'a -> string -> 'b -> 
40    ?sc2:string -> ?c2:'a -> string -> 'b -> 
41    ('a, 'b) message
42
43 val et_items3:
44    string -> 'a -> string -> 'b -> 
45    ?sc2:string -> ?c2:'a -> string -> 'b -> 
46    ?sc3:string -> ?c3:'a -> string -> 'b ->
47    ('a, 'b) message
48
49 val warn: int -> string -> unit