Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
This module defines the various levels of log, as well as some utility functions over levels.
exception Exception of error
val levels : t list
The list of all levels, in ascending order (i. e. from FATAL
to TRACE
).
val to_string : t -> string
Converts the passed level into a string.
val of_string : string -> t
Converts the passed string into a level. The string is converted from its uppercase form.
Raises Exception
if the passed string is not valid.
val to_int : t -> int
Converts the passed level into an integer.
val of_int : int -> t
Converts the passed integer into a level.
Raises Exception
if the passed integer is not valid.