Log Messages
The Log Messages command logs messages to a file. This could be used to log that the macro has progressed to a certain point in the macro and then log subsequent messages about the macro's progress.
Script Editor > Expand Debug Category > Log Messages
Use the Default Macro Log
Select this option to have the messages sent to the default macro log. The default log can be set from Options > Preferences > File System - File Paths tab.
If not using the Default Macro Log, then insert the file name and path of the file to log the messages. Or click on the Browse button to locate the file.
Message to log
Insert the message to be entered into the log.
Include a date/time stamp
Check this box to include a date and time stamp of when the entry was made to the log. The date/time stamp is based on the date and time of the system clock.