package octez-libs
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=ddfb5076eeb0b32ac21c1eed44e8fc86a6743ef18ab23fff02d36e365bb73d61
sha512=d22a827df5146e0aa274df48bc2150b098177ff7e5eab52c6109e867eb0a1f0ec63e6bfbb0e3645a6c2112de3877c91a17df32ccbff301891ce4ba630c997a65
doc/octez-libs.event-logging/Tezos_event_logging/Internal_event/index.html
Module Tezos_event_logging.Internal_event
Source
This module defines a "structured event logging framework."
Internal-Event streams are like traditional logs but they have a proper Data_encoding
format in order to be processed by software.
The module defines "Sinks" SINK
as the receptacle for structured events: pluggable modules which can absorb (i.e. display, store, forward) the events emitted within the code-base.
Events Definitions and Registration
The relative importance of a particular event (compatible with traditional logging systems, cf. Lwt_log_core.level
).
Sections are a simple way of classifying events at the time of their emission.
All the section that has been registered. Currently, sections are registered by the `Simple`.
Parameters defining an inspectable type of events.
Build an event from an event-definition.
event_definition
wraps EVENT_DEFINITION
as a first class module.
Helper functions to manipulate all kinds of events in a generic way.
Access to all the event definitions registered with Make
.
Sink Definitions and Registration
An implementation of SINK
is responsible for handling/storing events, for instance, a sink could be output to a file, to a database, or a simple "memory-less" forwarding mechanism.
sink_definition
wraps SINK_DEFINITION
as a first class module.
Use All_sinks.register
to add a new inactive sink, then All_sinks.activate
to make it handle events.
Common Event Definitions
The worker logger is meant for use with Lwt_utils.worker
.