solana_program_runtime::stable_log

Function program_log

source
pub fn program_log(
    log_collector: &Option<Rc<RefCell<LogCollector>>>,
    message: &str,
)
Expand description

Log a message from the program itself.

The general form is:

"Program log: <program-generated output>"

That is, any program-generated output is guaranteed to be prefixed by “Program log: “