Stata Log Files

Body

Details

Log files keep a record of the command statements you enter and Stata's output. Specifying a filename saves the log to a file; saving as a log format rather than the default SMCL format will allow you to open the log in other applications (such as Microsoft Word or Notepad).

A log file can be opened or started in two ways:

  1. Click the File menu and choose Log; or
  2. Use the log command. It is wise to open a log file at the beginning of a session, turning it on or off as you need to save commands and results.

The replace option overwrites the log file.

Append adds to it.

On or off option turns the logging on or off in the middle of a session.

The close option closes the log file.

Stata manuals are available for reference in the Baker/Berry Library.

Details

Details

Article ID: 64642
Created
Tue 10/9/18 12:18 PM
Modified
Mon 6/19/23 1:50 PM