package tezos-base

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

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-16.0.tar.gz
sha256=ad9e08819871c75ba6f4530b125f7d157799398e4d77a1e6bfea9d91ff37ff55
sha512=c5dc4d40cc09bc6980fbbdb5c2e105bf4252cf9cfcb2b49660b0ebe4dc789f6709ec3b3bf2f87d81580d3eed9521eeb1c960f24d9b14eb0285aaba1f84d10a9b

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

Module Tezos_base_unix.Internal_event_unixSource

Configure the event-logging framework for UNIx-based applications.

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

Sourcemodule Configuration : sig ... end
Sourceval init : ?lwt_log_sink:Tezos_stdlib_unix.Lwt_log_sink_unix.cfg -> ?configuration:Configuration.t -> unit -> unit Lwt.t

Initialize the internal-event sinks by looking at the ?configuration argument and then at the (whitespace separated) list of URIs in the "TEZOS_EVENTS_CONFIG" environment variable, if an URI does not have a scheme it is expected to be a path to a configuration JSON file (cf. Configuration.of_file), e.g.: export TEZOS_EVENTS_CONFIG="unix-files:///tmp/events-unix debug://", or export TEZOS_EVENTS_CONFIG="debug:// /path/to/config.json".

The function also initializes the Lwt_log_sink_unix module (corresponding to the "TEZOS_LOG" environment variable).

Sourceval close : unit -> unit Lwt.t

Call close on all the sinks.

OCaml

Innovation. Community. Security.