Stops the script error log started by StartErrorLog and writes the log out: the workbook (if one was configured) and the text log file are produced at this point.
Calling StopErrorLog is optional — if it is omitted, the log is still written automatically when the script finishes. Use it to close and write the log partway through a script, for example before a section that should not be included.
The log file is written to the folder given by the StartErrorLog serverPath (default %OUTPUT%/djscriptlogs/). The log content is also returned with the script results, so it is visible in the Log tab of the Script Editor.
Parameters
| Key | Value(s) | Description |
|---|---|---|
| method | "StopErrorLog" | Stops the script error log and writes it out. |
| project | "MyProject" | Current project name. |
{
"method": "StopErrorLog",
"project": "MyProject"
}