function Log(object)


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 Log() and it's used the same way. But our own Log() function is to be preferred to Log() because our Log() function always works, even for scripts run from within the web interface, whereas Log() only works when you run your scripts from within your operating system's shell.


Example:

{
 Log('Hello!!');
 Log(JSON.stringify(some_data));
}