Usage:
/LOG [-ligw[world]]
[OFF|ON|file]
Enables or disables logging, or lists currently open log files. An [-ligw] option specifies which history is used; the [OFF|ON|file] argument specifies what action is taken on that history.
Arguments:
When logging is enabled for a history, lines that are normally recorded in that history are also appended to the log file. The previously existing contents of the file, if any, are not affected.
It is possible to have multiple log files open simultaneously. It is also possible to have several types of output go to the same log file, by using several /log commands. For example,
/log -i tt.log /log -wTT tt.log /log -g onwill send input from the keyboard and output from the world TT to the file "tt.log", and also send all (global) output to the file named by the LOGFILE macro.
The functions of the /logme command in older versions of TF can be performed with /log -i.
Wrapping will be done in the log file only if the %{wraplog} variable is "on".
Logging is disabled by default. The default value of ${LOGFILE} is "tiny.log".
See: %wraplog, history, nlog() fwrite()