Log Files
Stata outputs to a terminal emulator. Output can be recorded into a markup file, which can be rendered into file formats including raw text.
Built-in Logging
log using "path/to/file", replace // do something log off di "Rather than running commands `quietly`, temporarily turn off logging. log on // do something else log close translate "path/to/file.smcl" "path/to/file.log"