package tezos-base
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=43723d096307603703a1a89ed1b2eb202b365f5e7824b96b0cbf813b343a6cf7
sha512=b2a637f2e965000d3d49ad85277ca24d6cb07a1a7cf2bc69d296d8b03ad78c3eaa8e21e94b9162e62c2e11649cd03bc845b2a3dafe623b91065df69d47dc8e4f
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.