How can we save all the log files form starting to ending while executing a work flow in a .txt file
An idea could be using this workflow from UiPath Go.
Roboyo - Logfile Parser
This allows you to save the running process log to an Excel file. Maybe this can give an idea on how to fetch the Robot Execution log.