Syntax: #log {filename} [append/overwrite/html]
The log command is used to start recording all text coming from MUD (excluding special ANSI symbols) and user input, to the file called filename. If JMC is already writing output to a file, the current log file will be closed and a new log opened. When you use this command without parameters the current log file (if opened) will be closed. If the second parameter doesn't exist JMC will open the log file in "default log mode". This is configurable via the "Options/Log settings" dialog. If the default mode is the overwrite mode then JMC will overwrite the existing log file. If the mode is "append mode" then JMC appends the log to the existing file. If log mode is HTML your log will be written in the HTML format. ATTENTION ! Html log files cant be appended. Overwrite only.
You can choose log mode by using the second parameter. There are two valid values: "append" and "overwrite".
Example:
#log castle.log
Start logging to the file castle.log
#log town.log overwrite
Closes file "castle.log" and starts logging to file "town.log". If "town.log" exists, it will be overwritten.
#log
Stop logging.
See also: #read #write #textin Log params page