package octez-libs

  1. Overview
  2. Docs
A package that contains multiple base libraries used by the Octez suite

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-18.0.tar.gz
sha256=dbc3b675aee59c2c574e5d0a771193a2ecfca31e7a5bc5aed66598080596ce1c
sha512=b97ed762b9d24744305c358af0d20f394376b64bfdd758dd4a81775326caf445caa57c4f6445da3dd6468ff492de18e4c14af6f374dfcbb7e4d64b7b720e5e2a

doc/octez-libs.stdlib-unix/Tezos_stdlib_unix/Level_config_rules/index.html

Module Tezos_stdlib_unix.Level_config_rulesSource

This module handles set of rules for log sections specific configurations. For instance, if one want enable section "node.context" at level debug, it would be written "node.context -> debug". The complete syntax is the following

a pattern is a <string> containing a "*"

<rules> := <rule> ; <rules> <rule> := (<pattern> ->)? <level>

A value of this form can be found in environment variables TEZOS_LOG and LWT_LOG.

Sourceexception Incorrect_log_rules_syntax
Sourceexception Incorrect_log_rules_not_a_level
Sourceexception Incorrect_log_rules_missing_pattern
Sourceexception Incorrect_log_rules_missing_level
Sourceval find_log_rules : string option -> string * string option

find_log_rules default checks above environment variables for set of rules

  • returns the origin (environment variable or config file) and value if found
  • returns the default given configuration otherwise
Sourceval parse_rules : string -> rules

parse_rules s parses the string s representing a set of rules

OCaml

Innovation. Community. Security.