To view this content in our official product documentation, click here.
Introduction
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:
{% code title="PHP" overflow="wrap" lineNumbers="true" %}
function handle($data)
{
$data['logs'] = ["Log message 1", "Log message 2"];
return $data;
}...is 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.
Comments
0 comments
Please sign in to leave a comment.