Logging records details of a robot's processes and activities. There are different types of logs like verbose, trace, info, warn, error, and fatal to record various levels of detail. Logs help trace a process from start to finish to understand if it executed as expected and identify where any errors occurred. They provide a smooth tracking mechanism for processes. In UiPath Studio, the "Log Message" activity under Debug can be used to add logging.
2. 2
You can say it's like a robot's diary that records what the robot is doing while
executing a process
What is Logging?
3. 3
Types of Logs?
• VERBOSE – logs each and every possible detail of a flow
• TRACE – logs minute details at one/more areas of the process, but does
not include every single details of activities, variables, arguments, etc
• INFO – Logging normal information about something in a certain step
(example- Retrieved product ID- PRD001 from excel file – MyProducts.xlsx)
• WARN – Logging potential warning messages (some data not found in a
web page, etc)
•ERROR – Logging details of any technical exceptions (needed for proper
debugging)
• FATAL – Logging something pointing out it is not recoverable
4. 4
• Helps in tracing a process from start to end, helping us understand whether
the process has been executed as per expectations
• Helps in identifying the exact step where an error has occurred (highly
recommended to use appropriate custom messages in logs) in case of any
errors
• Ensure smooth tracker for any kind of process (be it a simple process or a
highly complex one). Monitoring a process becomes piece of cake!
****** It is all upon the messages you write (Custom
Messages). Make it as appropriate and understandable as
possible ******
Why Logs?
5. 5
How to get this thing done in UiPath Studio?
• Go to “Activities” panel in UiPath Studio
• Simply type “Log Message” in the “Search activities” search panel
to get started
• Drag the activity “Log Message” (Available in this hierarchy:
“Installed” -> “Programming” -> “Debug” -> “Log Message”)