You can specify on the Prism command line the name of a file to which commands and output are to be logged. You can also do this from within Prism, by issuing the log command.
Use the log command to log Prism commands and output to a file. The log file will be located in the current directory. This can be helpful in saving a record of a Prism session. For example,
log @ prism.log
logs output to the file prism.log. Use @@ instead of @ to append the log to an already existing file. Issue the command
log off
to turn off logging.
You can use the log command along with the source command to replay a session in Prism; see the next section. If you want to do this, you must edit the log file to remove Prism output.