package tezos-event-logging

  1. Overview
  2. Docs

Sections are a simple way of classifying events at the time of their emission.

type t
val empty : t
val make_sanitized : string list -> t

Build a Section.t by replacing special characters with '_'.

val to_lwt_log : t -> Lwt_log_core.section

Make the equivalent Lwt_log section.

val is_prefix : prefix:t -> t -> bool

is_prefix ~prefix p checks that p starts with ~prefix.

val encoding : t Data_encoding.t
val to_string_list : t -> string list
val pp : Format.formatter -> t -> unit
include Tezos_stdlib.Compare.S with type t := t
val (=) : t -> t -> bool

x = y iff compare x y = 0

val (<>) : t -> t -> bool

x <> y iff compare x y <> 0

val (<) : t -> t -> bool

x < y iff compare x y < 0

val (<=) : t -> t -> bool

x <= y iff compare x y <= 0

val (>=) : t -> t -> bool

x >= y iff compare x y >= 0

val (>) : t -> t -> bool

x > y iff compare x y > 0

val compare : t -> t -> int

compare an alias for the functor parameter's compare function

val equal : t -> t -> bool

equal x y iff compare x y = 0

val max : t -> t -> t

max x y is x if x >= y otherwise it is y

val min : t -> t -> t

min x y is x if x <= y otherwise it is y