logger
This is a global ScriptLogger
object that allows logging messages such as error, warning or informational messages. The messages will appear in the Messages pane (see Preflight Results and Messages and Designer User Interface).
Methods
These are the methods of the logger object.
Method | Parameters | Description |
---|---|---|
error() |
message: string |
Logs an error message |
info() |
message: string |
Logs an informational message |
warn() |
message: string |
Logs a warning message |