package tezos-stdlib-unix

  1. Overview
  2. Docs

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.

module Configuration : sig ... end
val init : ?lwt_log_sink:Lwt_log_sink_unix.cfg -> ?configuration:Configuration.t -> unit -> unit Tezos_error_monad.Error_monad.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).

val close : unit -> unit Tezos_error_monad.Error_monad.Lwt.t

Call close on all the sinks.