world.CloseLog

MUSHclient script function (Method)

Closes the log file

Prototype

long CloseLog();

Data type meanings

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

Return code meanings

Related topic

Logging

See also

FunctionDescription
FlushLogFlushes the log file to disk
IsLogOpenTests to see if a log file is open
OpenLogOpens a log file.
WriteLogWrites to the log file