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 (only one can be 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 (unless the line has the "L" nolog attribute). 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.
This example logs the current world's output to a file whose name contains the world's name and today's date:
/eval /log -w ${world_name}.$[ftime("%F")]
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".
Note: the natural logarithm function was renamed from log() to ln() in version 5.0, to avoid confusion with /log.
See: %wraplog, history, nlog() fwrite()