Debug.logAsError

Function/Meaning
Start outputting log to file as if an error occurred
Type
Method of the Debug class
Syntax
logAsError()
Arguments
None
Return Value
None (void)
Description
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.
Reference
Debug.startLogToFile
Debug.logToFileOnError
Debug.clearLogFileOnError