Macro pink::info

source ·
macro_rules! info {
    ($($arg:tt)+) => { ... };
}
Expand description

Macro info! logs messages at the Info level in pink contract.

This macro is used to log information that would be helpful to understand the general flow of the system’s execution. It is similar to log::info, but it is specifically designed to work within the pink contract environment.

§Examples

Basic usage:

pink::info!("This is an information message.");
let answer = 42;
pink::info!("The answer is {}.", answer);

The above example would log “This is an information message.” and “The answer is 42.” at the Info level.