package octez-libs
Sink
is an Internal_event.SINK
implementation logging through Tezt's Log
.
A sink can store any required state, e.g. a database handle, in a value of the t
type see configure
.
val configure : Uri.t -> t Tezos_error_monad.Error_monad.tzresult Lwt.t
When a registered sink is activated the configure
function is called to initialize it. The parameters should be encoded or obtained from the URI (the scheme of the URI is already uri_scheme
).
val should_handle :
?section:Tezos_event_logging.Internal_event.Section.t ->
t ->
_ Tezos_event_logging.Internal_event.event_definition ->
bool
Predicate deciding whether a sink should handle the event or not.
val handle :
t ->
'a Tezos_event_logging.Internal_event.event_definition ->
?section:Tezos_event_logging.Internal_event.Section.t ->
'a ->
unit Tezos_error_monad.Error_monad.tzresult Lwt.t
A sink's main function is to handle
incoming events from the code base.
val close : t -> unit Tezos_error_monad.Error_monad.tzresult Lwt.t
A function to be called on graceful termination of processes (e.g. to flush file-descriptors, etc.).
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>