Regarding the error log file, this makes KiriKiri behave the same as when an error occurs.
That is, if Debug.logToFileOnError is true, it starts outputting the console log to a file.
At that time, if Debug.clearLogFileOnError is true, the file is cleared.
In contrast, Debug.startLogToFile unconditionally starts outputting the console log to a file.