package tezos-stdlib-unix

  1. Overview
  2. Docs
Tezos: yet-another local-extension of the OCaml standard library (unix-specific fragment)

Install

Dune Dependency

Authors

Maintainers

Sources

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

doc/tezos-stdlib-unix/Tezos_stdlib_unix/File_event_sink/index.html

Module Tezos_stdlib_unix.File_event_sinkSource

An implementation of Tezos_base.Internal_event.SINK which writes the events as JSON files in a given directory structure.

It is registered with the URI scheme "unix-files", one can activate it with an URI containing the top-level directory in which the JSON files will be written, e.g. "export TEZOS_EVENTS_CONFIG=unix-files:///the/path/to/write" (the path should be inexistent or already a directory).

The directory structure is as follows: "<section-dirname>/<event-name>/<YYYYMMDD>/<HHMMSS-MMMMMM>/<YYYYMMDD-HHMMSS-MMMMMM-xxxx.json>" where "<section-dirname>" is either "no-section" or "section-<section-name>".

Sourcetype t
Sourcemodule Query : sig ... end

The module Query provides a fold function over the events stored by a given instantiation of the SINK.t.

OCaml

Innovation. Community. Security.