Page
Library
Module
Module type
Parameter
Class
Class type
Source
Tezos_event_logging.Internal_event
SourceThis 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.
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` module and the `Legacy_logging` module.
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
.
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.
The debug-event is meant for emitting (temporarily) semi-structured data in the event stream.
The worker logger is meant for use with Lwt_utils.worker
.
The module Legacy_logging
replaces the previous Logging.Make_*
functors by injecting the non-structured logs into the event-logging framework. Please do not use for new modules.
The lwt-sink outputs pretty-printed renderings of events to the lwt-log logging framework (see the Lwt_log_core
module).