Site logo

Logging example

Here is a simple script that exports a document to pdf.

  1. If everything goes as expected, the document name and + " – Successfully exported" is added to the log
  2. If an error occurs (caught by a try-catch block), an error message and the line number where it happens is logged: in this example, in line #9 when the script attempts to export the file, but the pdf preset defined in line #6 – called "Test" – is missing.

Back to the main Batch processor page