Add log field


#1

Hi All,

Could anyone explain about add log field activity.Please don’t direct me to the activities guide.

Regards,
Rahul


How to Use the Add Logs Fields And Log to history
#2

Log field basically allows you to write whatever you want into the UiPath Robot Log (pretty sure this is in a text file and also in Windows Event Logs and if you have an Orchestrator it is rolled up to there also).

When you drop it in you set a level that the log entry is. When you connect a robot to an orchestrator, you choose what level the robot pushes up to the orchestrator.

Using is quite easy. It takes a string, so you can just use " " to put some text in.

Anything specific confusing you?


#3

I think his looking for “Add Log Field” Activity.
You have explained about “Log Message” Activity.
oops… :slight_smile:


#4

Oops! Well I haven’t used that, so maybe I’ll learn something when it gets explained :slight_smile:


#5

Hi @badita

Any help we may get here?

Regards,
Rahul


#6

I use it to add extra fields to the exisiting logs, which will Suffix to the existing log pattern.

exception”:“UiPath.Core.SelectorNotFoundException: Cannot find the UI element corresponding to this selector: —> System.Runtime.InteropServices.COMException: Cannot find the UI element corresponding to this selector: \r\n at UiPath.UiNodeClass.FindFirst(UiFindScope scope, String nodeID)\r\n at UiPath.Core.UiElement.FindFirst(FindScope scope, Selector selector)\r\n — End of inner exception stack trace —\r\n at UiPath.Core.Activities.TaskAsyncCodeActivity`1.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)\r\n at System.Activities.AsyncCodeActivity.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context, IAsyncResult result)\r\n at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)”,“timestamp”:“05/30/2017 15:25:26”,“activity”:“Selector Click”,“machine”:“XXXXXX”}


#7

Can you provide one demo project for this. i have tried , its not taking the arguments which i declared.


#8

would you please provide example.


#9

[Image removed by sender.]

Chandhttps://forum.uipath.com/u/chand
July 10

would you please provide example.

logsSample.xaml (5.27 KB)


What methods are used to store information in the Logs Tab in Orchestrator?
Job status
#10

thanks, i got it how it works :slight_smile:


#11

ok got it.


#13

Hi All
Did not find a better thread than this to post my question. So, After We add fields to the log message. We can see the fields in the log but when I export it to csv, i can not find those fields. Is there anything we should do to get those fields in CSV?
T.I.A