openlog <file> [append]

The "openlog" command is used to log all program input and output (including comments) to the specified "file".  The file serves as a transcript of the current session.

Warning:  If the specified file already exists, its previous contents will be overwritten by the new transcript unless the "append" option is specified.

e.g.   openlog session.log    Begin logging output to "session.log"
e.g. openlog trans append Continue logging output to "trans"
See also:  closelog, comment