package vlt

  1. Overview
  2. Docs

This module provides the function loading a configuration from a file in "new" format.

The file format is as follows:

  • the format is not line-oriented;
  • comments have the same syntax than in OCaml;
  • sections have the format logger "a.b.c" { key_1 = val_1; ... key_n = val_n; } where "a.b.c" is the name of the section and key_i/val_i pairs define the properties of the section.
val load : string -> Configuration.t

Loads the configuration from the passed file.

Raises Sys_error if an i/o error occurs, and Configuration.Exception if file cannot be parsed.