Size: 653
Comment:
|
Size: 750
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 47: | Line 47: |
---- == See also == [[https://www.stata.com/manuals/dlog.pdf|Stata manual for log]] |
Stata Log
The log command records commands and command output, and writes them to a log file.
Usage
Rich Logs
Stata supports a rich log format, using the .smcl file extension.
log using "path/to/file.smcl", replace log close
Text Logs
Use the text option.
log using "path/to/file.txt", replace text log close
Temporarily Disabling Logging
Some output should not be recorded. Try:
log off display "Rather than running commands quietly, temporarily turn off logging. log on