package tezos-base
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=ad9e08819871c75ba6f4530b125f7d157799398e4d77a1e6bfea9d91ff37ff55
sha512=c5dc4d40cc09bc6980fbbdb5c2e105bf4252cf9cfcb2b49660b0ebe4dc789f6709ec3b3bf2f87d81580d3eed9521eeb1c960f24d9b14eb0285aaba1f84d10a9b
doc/tezos-base.unix/Tezos_base_unix/Internal_event_unix/index.html
Module Tezos_base_unix.Internal_event_unix
Source
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.
val 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).
Call close
on all the sinks.