package tezos-base

  1. Overview
  2. Docs
Tezos: meta-package and pervasive type definitions for Tezos

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-17.3.tar.gz
sha256=7062cd57addd452852598a2214ade393130efa087b99068d53713bdf912b3680
sha512=08e4091144a03ce3c107fb91a66501bd8b65ca3278917c455a2eaac6df3e108ade63f6ab8340a4bb152d60f404326e464d0ec95d26cafe8e82f870465d24a5fc

doc/tezos-base.unix/Tezos_base_unix/Internal_event_unix/Configuration/index.html

Module Internal_event_unix.ConfigurationSource

include module type of struct include Tezos_base.Internal_event_config end

The JSON-file-friendly definition of the configuration of the internal-events framework. It allows one to activate registered event sinks.

FIXME: https://gitlab.com/tezos/tezos/-/issues/4850 Config override default values, but the env TEZOS_EVENTS_CONFIG does not. Is that what we want ?

Sourceval empty : t

The empty configuration. It doesn't activate any sink.

Sourceval lwt_log : t

The configuration with only an lwt-log sink.

Sourceval make_config_uri : ?level:Tezos_event_logging.Internal_event.Level.t -> ?daily_logs:int -> ?create_dirs:bool -> ?format:string -> ?chmod:int -> ?with_pid:bool -> ?fresh:bool -> ?section_prefixes:(string * Tezos_event_logging.Internal_event.level) list -> [ `Stdout | `Stderr | `Path of string ] -> Uri.t

make_config_uri kind builds a configuration URI using the optional parameters with the given kind. The arguments are the options documented in Tezos_stdlib_unix.File_descriptor_sink.

Sourceval is_empty : t -> bool

Check if the configuration is empty.

Sourceval make_custom : Uri.t list -> t

Allows to make custom list of uris.

Sourceval encoding : t Data_encoding.t

The serialization format.

Run Tezos_base.Internal_event.All_sinks.activate for every URI in the configuration.

Close all the sinks except "lwt-log://" and call apply.

Parse a json file at path into a configuration.

OCaml

Innovation. Community. Security.