How to Write Uipath Execution Logs in csv files

log file ( start/end time , method name, date)

@krishna_priya

Get the robot logs using these end points

For details check swagger ui

https://docs.uipath.com/orchestrator/automation-cloud/latest/api-guide/api-references

Then from the rsponse get the required data using desirialize json and then add required sata to datatble and then write to csv

Cheerse

is there is any other option are there to get the "run time log "

@krishna_priya

If you are running from Orchestrator and start a job then you can extract the Job logs
Else you can open the logs and there the logs are stored in a text file

Thanks,
Srini

@Srini84

Actually I need the csv run log file after run the studio project.

I don’t public the my project in the Orchestrator

@krishna_priya

Then one option is that you have to write Range after your activity, this will be more manual work

OR

Another option you can try to parse the text file to excel file

Thanks,
Srini

Okay can you explain how to I get the run log text file

@krishna_priya

From Studio Select Debug tab and click on the openLogs as shown below

This will open the logs folder there you can find the logs

Thanks,
Srini

IS THERE any option to get the run time log separately

@krishna_priya

As per knowledge, currently no such option

Thanks,
Srini

okay Thanks

Hi @krishna_priya

You can build a data table with the columns date time, method & process. Whenever the control gets in the sequence, You can add a data row to the particular table with the row data like above. Immediately use an Append Range activity to write that data into the log file, so that the data will be written immediately to the log file (you don’t have to wait till the process ends).

image

Hope this helps,
Best Regards.