Show / Hide Table of Contents

Runtime.Log Method (string)

Sends a log message to the client executing the smart contract. This method can trigger an event on the client but will require the client to be compatible.

Namespace: Neo.SmartContract.Framework.Services.Neo

Assembly: Neo.SmartContract.Framework

Syntax

public static extern void Log(string message)

Parameters:

message: Log as a string.

Example

public class Contract1 : SmartContract
{
    public static void Main(bool debug)
    {
        if(debug)
        {
            Runtime.Log("Execution successful");
        }
    }
}

Back