Debug.logToFileOnError

Function/Meaning
Whether to output the console log to a file when an error occurs
Type
Debug Class Properties
Explanation

If true, it will start outputting the console log to a file when an error occurs.
If false, the log will not be output to a file even if an error occurs.

Reference
Debug.startLogToFile
Debug.clearLogFileOnError