Description of MUSHclient world function: world.WriteLog
||Writes to the log file
long WriteLog(BSTR Message);
View list of data type meanings
This writes a message to the log file.
A "newline" is appended to the line if there is not already one there.
You can also use "LogSend" to send a message to the MUD, and log it, in a single function.
The data in the log file may not appear immediately if you view it in another application. To force the data to disk use the FlushLog function.
world.writelog "--- Message for the log file ---"
world.WriteLog("--- Message for the log file ---");
$world->WriteLog("--- Message for the log file ---");
world.WriteLog("--- Message for the log file ---")
WriteLog("--- Message for the log file ---")
You can supply multiple arguments, which are concatenated together.
eOK: written OK
eLogFileBadWrite: unable to write to the log file
eLogFileNotOpen: log file was not open
View list of return code meanings
See also ...
||Closes the log file
||Flushes the log file to disk
||Tests to see if a log file is open
||Sends a message to the MUD and logs it
||Opens a log file.
Search for script function
Enter a word or phrase in the box below to narrow the list down to those that match.
The function name, prototype, summary, and description are searched.
Leave blank to show all functions.
Many functions return a "code" which indicates the success or otherwise
of the function.
view a list of the return codes
The "prototype" part of each function description lists exactly how the function is called (what arguments, if any, to pass to it).
view a list of the data types used in function prototypes
View all functions
Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.
Gammon Software support
Forum RSS feed ( https://gammon.com.au/rss/forum.xml )