Crate solana_msg_utilssource · [−]
Provides macros used for logging messages on-chain, with the ability to provide “trace level” logging messages.
In addition to this, the trace level logging messages utilizes stack based formatting if the message size is less than 512 bytes for maximal compute units consumption efficiency
msg_panic! is a wrapper around the
macros used to log an error message, and panic in bpf environments
which do not actually show a message emitted by a panic macro
msg_trace! is a wrapper around the
msg! macro, that faciliates logging trace
level logs, which include the file and line number from where the message was emitted.