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 File Log
Select this option to have the messages sent to the default file log. The default log file can be set from Options > Preferences > File System - File Paths tab.
If not using the Default File 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 file.
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.