The Logging command should be inserted as the first line of a macro when you want any macro-related warnings or messages stored in a file, rather than displayed on the screen. (The message displaying the time a macro took to complete is an example of such a message.)
Logging file filename
• filename - The name of the file any messages will be stored in. This name can include a generic path.
The Logging command is also used in the Keys.ini file.