Regarding the error log file, Kirikiri performs the same operation as when an error occurred.
That is, if Debug.logToFileOnError is true, start logging the console to a file. At that time, if Debug.clearLogFileOnError is true, clear the file.
In contrast, Debug.startLogToFile unconditionally starts writing the console log to a file.