Debug.startLogToFile
Function/Meaning
Start console log output to file
Type
Method of the
Debug class
Syntax
startLogToFile(
clear
=
false
)
Arguments
clear
If true is specified, the log file will be cleared.
If false is specified, it will be appended to the existing file.
Return Value
None (void)
Description
Starts outputting the console log to a file.
Reference
Debug.logToFileOnError
Debug.clearLogFileOnError