ActivityLogFile

Top  Previous  Next

S

A

W

WS

ü

ü

Valid for: SetStartup

 

Syntax -

       SetStartup ActivityLogFile <FilePathAndName>

               Where:

                       <FilePathAndName> is a literal sting.

 

Description:

This option defines the full file path and file name in which EMUE records information regarding the activity of the script during the processing of a script.  Information that is logged to the activity log includes connection information, errors, SHOW and TELL statements and any other information that is written to the status area in the Main Tab.  The path and file name must be accessible from the workstation on which EMUE is running at the time of processing the script.  The file path and file name are displayed in the Activity Log File Name text box on the Debugging & Logging Activity tab of the EMUE Tools - Current Settings - Options Settings window.

 

Note: If the path to the file does not exist, EMUE will create it.

Note: If this option is not defined, the activity log information will not be written to a file, but will still be visible in the Activity Window in EMUE.

Note: If there are two instances of the same script open or two scripts that use the same activity log, only the first one will be able to access the activity log, unless there are time and date stamps included in the name, in which case, each instance of the same script would have a different activity log.

Note: The activity window will only show that last 1000 lines of activity that would have been logged.  The entire contents of the activity log are written to the activity log file.

 

Note: The following key terms may be used in the name of this file.  These terms will be valued when the processing of the script begins and the values will be used in the name of the file:

Term

Will be replaced by

#TODAY#

The current  date in the format MMDDYY

#DATE#

The current date in the format MMDDYY

#NOW#

The current time in the format hhmmss

#TIME#

The current time in the format hhmmss

#SCRIPTFILENAME#

The name of the current script file without path or extension

#SCRIPTFOLDER#

The name of the folder path where the current script file is located

#COMPUTERNAME#

The name of the computer where the script is running

 

Sample 1:

       The following statement instructs EMUE to log all activity from the status area to the file "C:\EMUE\ActivityLog.txt"

SetStartup ActivityLogFile "C:\EMUE\ActivityLog.txt "

 

Sample 2:

       The following statement adds a time and date stamp to the name of the activity log file.

SetStartup ActivityLogFile "C:\EMUE\ActLog_#TODAY#_#TIME#.txt "