Contents - Index


Log and LogFileName (Macro Commands)

 

Log 'Message' or ON/OFF

If the word OFF appears after the Log keyword, logging of information to macro log file will cease.  If the word ON appears after the Log keyword, logging of information to the macro log file will be resumed.   If text other than ON or OFF follows the Log keyword, the text will be written to the log file that is created when the macro is run.  The text can be a string constant ('Message') or an EES string variable (e.g., M$).  Macro commands are processed sequentially.  The log file may be helpful for debugging a macro file.

 

LogFileName  FileName

By default, EES writes a log file showing each of the macro commands that it executed.  The log file name is named, by default, EESMacro.log, and it is placed in the same directory as the macro file.  However, you can change the filename for the log file with the LogFileName macro command.  The Filename that follows the LogFileName keyword normally has a .log filename extension, but any extension representing a text file is appropriate.  The directory can be indicated in the filename.  If a directory is not specified, the log file will be placed in the same directory as the macro file.  Note that Filename cannot be represented with an EES string variable.  If a filename is not provided after the LogFileName keyword (i.e., the filename is blank) a log file will not be written. Also, this command must appear on a line by itself, without a preceding statement label. 

 

MacroCommands