-
Notifications
You must be signed in to change notification settings - Fork 2
/
log.mli
32 lines (25 loc) · 810 Bytes
/
log.mli
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
(*
* Copyright (c) 2015 Alexander Færøy. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*)
module Make (C : V1_LWT.CONSOLE) :
sig
module Level :
sig
type t =
| Debug
| Info
| Notice
| Warning
| Error
exception LogLevelError of string
val to_string : t -> string
val from_string : string -> t
val to_colour : t -> Colour.t
val to_integer : t -> int
end
type t
val create : Level.t -> C.t -> t
val log : t -> Level.t -> ('a, unit, string, unit) format4 -> 'a
end