Log to File - Examples                           How to use?

 

Example 1: Monitor the performance of your automated task by logging timestamps.

  1. In your automated task you can insert 'Log to File' command at several appropriate locations and log the text and the Time stamp (by checking the 'Add Timestamp' box).
  2. This way once the task runs, you can open the text file where you logged the data and measure at what time what actions took place. It will help you to measure the performance and accuracy of your automated task.

Example 2: Debug your task involving copying data by logging the clipboard value.

  1. Let's say you are using Loops within your tasks and you want to find the values of clipboard variable during each iteration of the loop.
  2. Automation Anywhere provides a system variable called $Counter$, you can log this variable along with other text and $Clipboard$ variable value after copying the data in the task. For e.g. if you want to find what is the value of $Clipboard$ in all the iterations of the loop, you can log $Counter$-$Clipboard$
  3. That way you can find out the value of the variable in all the interations.