package octez-proto-libs

  1. Overview
  2. Docs
Octez protocol libraries

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-18.0.tar.gz
sha256=dbc3b675aee59c2c574e5d0a771193a2ecfca31e7a5bc5aed66598080596ce1c
sha512=b97ed762b9d24744305c358af0d20f394376b64bfdd758dd4a81775326caf445caa57c4f6445da3dd6468ff492de18e4c14af6f374dfcbb7e4d64b7b720e5e2a

doc/octez-proto-libs.protocol-environment/Tezos_protocol_environment/V7/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.