Config logs to F drive?

In the appdata …local/logs in C drive , i see it generates two logs. I have used the N.log file (found in program file/UiPath/studio ) to move the “execution” logs to F drive.

Question 1: How do we set configuration that the logs gets deleted after certain number of days/ keeps logs only for certain # of days…?

I see in the C drive log folder there is another logs being generated… “ U automation”…

Question 2: What is that and is there a way to configure something so those type of logs gets generated in the F drive location as the execution logs?!

Hi @Gloriakp

There is not option to change the folder path for UiPath Logs.

  1. Implement the logic to read the file available in folder C:\Users\User\AppData\Local\UiPath\Logs.

  2. Check the time of creation of files using File Info data.

  3. If the creation of file data time exceed your minimum criteria of days, then delete the file. Rest all the files will be inside your criteria.

Thanks,

you need to read the logs file and based on the naming conversion of the file or the Last modify date, you identify the date of the log and delete it