[][src]Function hdk::api::debug

pub fn debug<J: TryInto<JsonString>>(msg: J) -> ZomeApiResult<()>

Prints a string through the stdout of the running service, and also writes that string to the logger in the execution context

Examples

pub fn handle_some_function(content: String) -> ZomeApiResult<()> {
    // ...
    hdk::debug("write a message to the logs");
    // ...
    Ok(())
}