--- title: "StopErrorLog" slug: "stoperrorlog" updated: 2026-06-23T14:36:45Z published: 2026-06-23T14:36:45Z canonical: "docs.datajet.app/stoperrorlog" stale: true --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.datajet.app/llms.txt > Use this file to discover all available pages before exploring further. # StopErrorLog Stops the script error log started by [StartErrorLog](/v1/docs/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](/v1/docs/script-editor). ## Parameters | Key | Value(s) | Description | | --- | --- | --- | | method | `"StopErrorLog"` | Stops the script error log and writes it out. | | project | `"MyProject"` | Current project name. | ```json { "method": "StopErrorLog", "project": "MyProject" } ``` ## See also - [StartErrorLog](/v1/docs/starterrorlog) - [LogWrite](/v1/docs/logwrite) - [Deep Dive – Error Handling in Scripts](/v1/docs/deep-dive-error-handling-in-scripts)