hi guys, im trying to export the logs on the output panel to a certain folder everytime the execution ends or encouters an error
i dont want to use the logs in the C:\Users\user_name\AppData\Local\UiPath\Logs because it’s hard to understand.
how can i achieve this ?
Natapong
(Natapong Raojutitam)
September 5, 2019, 2:55am
2
@RobertoEwaldo
you can click at yellow highlight to export log message in output panel
@Natapong yeah i know, but i want to export it automatically everytime the execution ends or encounters an error, how can i do that ?
1 Like
Natapong
(Natapong Raojutitam)
September 5, 2019, 4:14am
4
@RobertoEwaldo
You can edit NLog.config file to custom your Execution.log to export log messaeg from output panel *If you want log info please delete comment at line 6
then you will got log file like this
Image from my output panel
NLog.Config file located in UiPath installation folder
You can refer below
Hi @Petar_Soce pen NLog.Config file located in UiPath installation folder (generally C:\Program Files (x86)\UiPath Platform). Update the minLevel for log as “Error”.
[image]
I hope it would be help you
1 Like
@Natapong Thanks, will try it
@Natapong hi is there any way i can get only the message ? Because it doesn’t look so pretty here
Natapong
(Natapong Raojutitam)
September 10, 2019, 3:44am
7
@RobertoEwaldo
You can use regex to control log messages output.
Solution:
1.Add variable for get only first message
<variable name="truncated_message" value="${replace:replaceWith=...:regex=true:inner=${message}:searchFor=(\,.*$)}"/>
2.Add new variable to log layout
layout="${time}${level}${truncated_message}
You will get log like this
I hope this information will be useful to you
1 Like
@Natapong Thanks a lot bro it worked
1 Like
system
(system)
Closed
September 13, 2019, 8:30am
9
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.