package octez-libs

  1. Overview
  2. Docs
A package that contains multiple base libraries used by the Octez suite

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-octez-v20.1.tag.bz2
sha256=ddfb5076eeb0b32ac21c1eed44e8fc86a6743ef18ab23fff02d36e365bb73d61
sha512=d22a827df5146e0aa274df48bc2150b098177ff7e5eab52c6109e867eb0a1f0ec63e6bfbb0e3645a6c2112de3877c91a17df32ccbff301891ce4ba630c997a65

doc/octez-libs.base/Tezos_base/Internal_event_config/index.html

Module Tezos_base.Internal_event_configSource

Configure the event-logging framework.

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 ?

Sourcetype t
Sourceval empty : t

The empty configuration. It doesn't activate any 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 -> ?colors:bool -> ?fresh:bool -> ?section_prefixes:(string * Tezos_event_logging.Internal_event.level) list -> [ `Stdout | `Stderr | `Path of string | `Null | `Syslog 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 short_stdout_uri : Uri.t

The configuration uri for an stdout sink.

Sourceval stdout : t

The configuration with only an stdout 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.

OCaml

Innovation. Community. Security.