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).
ScriptLogger
These are the methods of the logger object.
message: string
info()
Logs an informational message
warn()
Logs a warning message