package vlt

  1. Overview
  2. Docs
A variant of Bolt logging tool

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.2.5.tar.gz
sha256=756a6cba94204cda45ee767ca5f7e52ec321873dd53de48025c32dba1e03de24
md5=c0f22efcafa1119a9c82ffd9d7422da2

doc/vlt/Vlt/Level/index.html

Module Vlt.LevelSource

This module defines the various levels of log, as well as some utility functions over levels.

Sourcetype error =
  1. | Invalid_level_string of string
  2. | Invalid_level_int of int
Sourceexception Exception of error
Sourcetype t =
  1. | FATAL
    (*

    Level for errors leading to program termination.

    *)
  2. | ERROR
    (*

    Level for errors handled by the program.

    *)
  3. | WARN
    (*

    Level for for hazardous circumstances.

    *)
  4. | INFO
    (*

    Level for coarse-grained information.

    *)
  5. | DEBUG
    (*

    Level for debug information.

    *)
  6. | TRACE
    (*

    Level for fine-grained information.

    *)

The type of logging levels.

Sourceval levels : t list

The list of all levels, in ascending order (i. e. from FATAL to TRACE).

Sourceval to_string : t -> string

Converts the passed level into a string.

Sourceval 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.

Sourceval to_int : t -> int

Converts the passed level into an integer.

Sourceval of_int : int -> t

Converts the passed integer into a level.

Raises Exception if the passed integer is not valid.