Log (custom log line)¶
function Log(line: string)
This function adds your own custom line to the script’s execution log. Typically you’d call this function with a string parameter, but truly it will log whatever you pass to it.
It’s practically very similar to JavaScirpt’s own log() and it’s used the same way. But AFT!’s
Log()
function is to be preferred to JavaScript’s log() because our Log()
function always works,
even for scripts run from within the web interface, whereas JavaScript’s log() only works when you
run your scripts from within your operating system’s shell.
{
Log('Hello!!');
// ...
Log(JSON.stringify(some_data));
}