Debug.logToFileOnError

Function/Meaning
Whether to output the console log to a file when an error occurs
Type
Debug class property (read/write)
Description
If true, console log output to a file will start when an error occurs.
If false, log output to a file will not start even if an error occurs.
Reference
Debug.startLogToFile
Debug.clearLogFileOnError