Name OpenLog
Type Method
Summary Opens a log file.
Prototype long OpenLog(BSTR LogFileName, BOOL Append);
Description This opens a log file of the name "LogFileName", with optional appending to an existing file of the same name. No previous output lines are written (as may happen when you use the ‘open log’ dialog box), nor is a log-file preamble written. If you want to write those things to the script file, you must do them yourself (see WriteLog).
VBscript example
World.openlog "mylog.txt", false
Jscript example
world.openlog("mylog.txt", false);
PerlScript example
$world->openlog("mylog.txt", false);
Returns eOK: opened OK
eCouldNotOpenLogFile: unable to open the log file
eLogFileAlreadyOpen: log file was already open

See also ...