Custom script messages for logs


When testing and debugging scripts, it can be useful to write specific information to logs after the script has finished processing.

You can do this by adding a logs array key to a script, with required output added as strings - for example:

function handle($data)
    $data['logs'] = ["Log message 1", "Log message 2"];
    return $data;
} output as:

Need to know

  • Log messages must be strings.

  • A maximum of 500 characters (in total) is allowed.

  • Use with care (especially in loops) as logs are output every time the script runs.

Last updated