package tezos-event-logging

  1. Overview
  2. Docs

Module to manipulate values of type level.

type t = level

Alias of level.

val default : t

The default level is Info.

val to_lwt_log : t -> Lwt_log_core.level

Cast the level to a value of Lwt_log_core.level.

val to_string : t -> string
val of_string : string -> t option
val encoding : t Data_encoding.t
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

OCaml

Innovation. Community. Security.