Skip to main content

Module log

Module log 

Source
Expand description

Backend-neutral logging helpers.

Two tiers are exposed:

  • log for arbitrary UTF-8 text through the active backend’s sol_log_ syscall.
  • log_64 for integer-heavy logs through the five-u64 sol_log_64_ syscall, which is the cheapest structured-log path on Solana. This backs the hopper_log! macro’s “label + values” form and lets hot handlers emit telemetry without the core::fmt::Write setup cost that msg! pays.

Structs§

StackWriter
Stack-allocated write buffer for formatted log messages.

Functions§

log
Log a UTF-8 message through the active backend.
log_64
Log up to five u64 values through the sol_log_64_ syscall.