Icon HelpCircleForumIcon Link

⌘K

Icon HelpCircleForumIcon Link

Icon LinkLogging

Examples of logging in Sway

 
contract;
 
use std::logging::log;
 
abi MyContract {
    fn test_func(val: u64);
}
 
impl MyContract for Contract {
    fn test_func(val: u64) {
        log(val);
    }
}