Integrated Dynamics - On the Dynamics of Integration

Logging

For complex scripts, the need may arise to debug them by temporarily writing to external log files.

JavaScript allows you to call functions such as console.log() and console.error() to write messages to respectively the Standard Out and Standard Error output streams.

When calling any of these functions, log messages will respectively be written to script-dependent .stdout and .stderr files.

For example, if your script is located in myfile.js, log messages will be written to myfile.js.stdout.

These .stdout and .stderr files are accessible via your Scripting Terminal or through external editing.

To avoid log files to become too large, they are capped in their size. By default, they are limited to 2096 lines. Consult your server admin if you are in need of more lines.

function myComplexFunc(value) {
  console.log('Hello world!');
  console.log(`I received value ${value}`);
  return value + 42;
}