Debug.clearLogFileOnError

Function/Meaning
Whether to clear the console log file when an error occurs
Type
Debug class property (read/write)
Description
If true, the console log will be automatically cleared when an error occurs.
If false, it will not be cleared and will be appended to the existing log file.
Reference
Debug.startLogToFile
Debug.logToFileOnError