module Level:This module defines the various levels of log, as well as some utility functions over levels.sig
..end
type
error =
| |
Invalid_level_string of |
| |
Invalid_level_int of |
exception Exception of error
type
t =
| |
FATAL |
(* | Level for errors leading to program termination. | *) |
| |
ERROR |
(* | Level for errors handled by the program. | *) |
| |
WARN |
(* | Level for for hazardous circumstances. | *) |
| |
INFO |
(* | Level for coarse-grained information. | *) |
| |
DEBUG |
(* | Level for debug information. | *) |
| |
TRACE |
(* | Level for fine-grained information. | *) |
val levels : t list
FATAL
to TRACE
).val to_string : t -> string
val of_string : string -> t
Raises Exception
if the passed string is not valid.
val to_int : t -> int
val of_int : int -> t
Raises Exception
if the passed integer is not valid.