Logging levels

A developer is automating a production level process in the Robotic Enterprise (RE) Framework. Based on best practices, when should the developer log a meaningful message with the Logging Level as “Information”?

A.Each time an exception is caught in a Catch block

B.Every time the robot encounters an error on a Queue Item

C.Every time a variable or argument value is used

D.Each time data is read from external sources

Hi @Latifa
C. Every time a variable or argument value is used.

1 Like

@Latifa

Hi,

C.Every time a variable or argument value is used

1 Like

Hi @Latifa

Option D
Each time data is read from external sources

Option A and Option B are exceptions so it will give in log error.
Option C The project contains lot of variables and arguments so lot of log messages are given, it is not good at all.

I hope it helps!!

1 Like

Hi @Latifa

Option C

Regards,

1 Like

C. Every time a variable or argument value is used.

Logging a meaningful message with the Logging Level as “Information” each time a variable or argument value is used can be beneficial for troubleshooting and understanding the flow of the automation process. It helps provide insight into the values being used at different stages of the process and assists in identifying any unexpected behavior or issues related to the data being processed.

2 Likes

@Latifa

optionD

Regards

1 Like

Hi @Latifa

Option D is correct.

In Info level we only used to provide informational messages during the workflow execution. It is typically used to indicate important milestones or events in the workflow.

When exceptions is encountering we will give the error level. So A,B is incorrect.
We pass the variables and arguments many items in the process, here we are not used any log messages activity.

When we read the data from external sources better to give the log message here with info level.

Hope it helps!!

1 Like

Bro @Latifa could you please explain how was the option C. Elaborate more then we will get understand of it.

@mkankatala thanks for your concern. I went with the most voted. I am also learning and
appreciate to be challenged. I am a sister not a brother though :grinning:

Thanks

Okay sister C option is wrong why because we use many variables and arguments value in the workflow. If we will give the log message when we use the variable and arguments it was many logs in the output. In this case we didn’t give log messages.

When we read the data from the extension source we will give the log message with info level.

Hope it helps sister!!

1 Like

@mkankatala I am very grateful

1 Like

Option c is correct. At the information level, we will be storing all the messages whether it is smaller or higher.

https://docs.uipath.com/studio/standalone/2023.4/user-guide/logging-levels

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.