Debug.clearLogFileOnError

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

If true, it will automatically clear the console log when an error occurs.
If false, it will not be cleared and will be added to the existing log file.

Reference
Debug.startLogToFile
Debug.logToFileOnError