Command Reference : Command Reference
  
 
logsave
Saves the program log to a text file.
Syntax
logsave(options) destination
where destination is the location and filename for saving the log file (for types text and rtf) or the text object name (for type textobj)
Options
 
type=arg
Type TEXT to save the log as a TXT file (default).
Type RTF to save the log as an RTF file (to preserve syntax coloring).
Type TEXTOBJ to save the log as a TEXTOBJECT in the current workfile.
name=arg
Name of the message log, the contents of which will be written in the log file.
append
Append to the file, if the file exists. Default behavior clears the contents of the file. (Not supported for type=rtf).
Example
logsave c:\EViews\myprog.text
saves the contents of the program log to the text file MYPROG, in the “C:\EViews” directory.
logsave(name="firstrun", type=rtf) c:\EViews\myprog.rtf
saves the contents of the program log FIRSTRUN to the rtf file MYPROG, in the "C:\EViews" directory.
logsave(name="secondrun", type=textobj) mytextobj
saves the contents of the program log SECONDRUN to a text object MYTEXTOBJ in the current workfile.
logsave(name="thirdrun", type=text, append) c:\EViews\myprog.txt
saves the contents of the program log THIRDRUN to the text file MYPROG, in the "C:\EViews" directory. The output will be appended at the end of the file.
Cross-references
See “Program Message Logging” for details.
See also logclear, logmode, logclose, and logmsg.