world.CloseLog
Closes the log file
Prototype
long CloseLog();
Description
This closes the currently open log file.
If you have a log file postamble declared this is written to the log file (note that this is inconsistent with what OpenLog does).
VBscript example
world.closelog
Jscript example
world.closelog();
PerlScript example
$world->closelog;
Python example
world.closelog
Lua example
CloseLog()
Return value
eOK: closed OK
eLogFileNotOpen: log file was not open
Related topic
See also
| Function | Description |
|---|---|
| FlushLog | Flushes the log file to disk |
| IsLogOpen | Tests to see if a log file is open |
| OpenLog | Opens a log file. |
| WriteLog | Writes to the log file |