package octez-proto-libs

  1. Overview
  2. Docs
Octez protocol libraries

Install

Dune Dependency

Authors

Maintainers

Sources

octez-19.0.tar.gz
sha256=c6df840ebbf115e454db949028c595bec558a59a66cade73b52a6d099d6fa4d4
sha512=d8aee903b9fe130d73176bc8ec38b78c9ff65317da3cb4f3415f09af0c625b4384e7498201fdb61aa39086a7d5d409d0ab3423f9bc3ab989a680cf444a79bc13

doc/octez-proto-libs.protocol-environment/Tezos_protocol_environment/V6/Make/Logging/index.html

Module Make.LoggingSource

Sourcetype level =
  1. | Debug
  2. | Info
  3. | Notice
  4. | Warning
  5. | Error
  6. | Fatal

Logging levels. See docs/developer/guidelines.rst for their meaning

Sourceval log : level -> ('a, Format.formatter, unit, unit) Pervasives.format4 -> 'a

Logs a message. It is the shell's responsibility to manage the actual logging.

Even though logging may involve system calls, formatting, or other work, the shell guarantees that calling this function doesn't transfer control over another promise. Consequently, the performance of this function can be considered predictable from the point of view of gas-consumption.

Note that the function call has predictable performance, but that it is the caller's responsibility to ensure that argument evaluation has predictable performance too. E.g., log Notice "%s" (Format.asprint …) may spend time formatting the argument string.

Sourceval log_string : level -> string -> unit

Same as log but more efficient with a simpler interface.

OCaml

Innovation. Community. Security.