log

Description

Switch message logging on or off.

Log a session to a specified file or view current logging status. The entire session, including output, is logged to the specified file.

Tip: To log only command input, use the record (rc) command.

Syntax

log {on file|off}
  • The on or off argument is required to turn logging on or off. Log without arguments identifies the current state.
  • on: Required to turn logging on. On requires a file name.
  • file: Name of the log file. You can specify the type of file to generate, such as .txt or .csv.
  • off: Turn off the current logging session.

Examples

  • To log to a file named MyLogFile.txt:
    AllApplications>> Log on c:\MyLogFile.txt
  • To turn logging off:
    AllApplications>> Log off