Custom script messages for logs
Last updated
Last updated
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:
...is output as:
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.