Macro solana_program::msg [−][src]
Print a message to the log
There are two fast forms:
- Single string:
msg!("hi")
- 5 integers:
msg!(1, 2, 3, 4, 5)
The third form is more generic and incurs a very large runtime overhead so it should be used
with care:
3. Generalized format string: msg!("Hello {}: 1, 2, {}", "World", 3)