--- title: "StartErrorLog" slug: "starterrorlog" updated: 2024-03-06T17:13:03Z published: 2024-03-06T17:13:03Z canonical: "docs.datajet.app/starterrorlog" --- > ## 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. # StartErrorLog Starts the script error log When executing server side the log will be written to the output directory as "filename" and mailed everyone in the "mailTo" list. Use "serverPath" to specify an alternative log file location. serverPATH must start with a system variable. If sub paths are included, it must end with a slash: ```json { "method": "StartErrorLog", "filename": "DemoLog.txt", "serverPath": "%DATAPATH%Folder/Folder2/", "mailTo": [], "project": "Demonstration" } ``` ```json { "method": "StartErrorLog", "filename": "DemoLog.txt", "serverPath": "%DATAPATH%Folder/Folder2/", "mailTo": [], "project": "Demonstration" } ``` Add the following to generate a workbook containing variables, Info and Errors entries. Set **append** to true if this log in being added to an existing workbook. ```json "workbook": { "filename": "log.xlsx", "append": false, "variables": "Variables", "info": "Info", "errors": "Errors" } ```