Debug.startLogToFile

Function/Meaning

Start output of console log

Type
Debugclassmethod of
Syntax
startLogToFile(clear=false)
Arguments
clear

If you specify true, the log file will be cleared.
If you specify false, it will be added to the existing file.

Return value
None (void)
Explanation

Starts outputting the console log to a file.

Reference
Debug.logToFileOnError
Debug.clearLogFileOnError