Log levels

Hi,
In my workflows I am setting the log level to Trace. Is there a way to turn on of off these logs? What happens when I change to “Info” level.
Where do I find the generated logs?

Thank you,

@A_Learner,

Yes you have 3 ways:

  1. In Orchestrator:
  • If you are running your processes via UiPath Orchestrator, you can manage logging settings in the Orchestrator interface.
  • Navigate to the Robot settings in Orchestrator and adjust the Log Level. You can set it to Trace, Info, Warn, Error, or Fatal.
  • Setting it to a higher level (e.g., Error) will log less detailed information, effectively reducing the amount of logging.
  1. In Local Settings (UiPath Assistant):
  • Open UiPath Assistant.
  • Go to the Settings tab.
  • Under Logging, you can change the Log Level.
  1. Programmatically in Workflows:
  • You can use the Log Message activity within your workflows to log custom messages at different levels (Trace, Info, Warn, Error, Fatal).
  • Use condition checks in your workflows to control when specific log messages are recorded.
  • When you change the log level to Info, only messages logged at the Info, Warn, Error, and Fatal levels will be recorded. This reduces the amount of detailed trace information and focuses on more significant events.
  • Info level is typically used to log general information about the execution flow, while Trace is more verbose and includes detailed diagnostic information.

Logs would be available at two places depending on from where you executed the bot.

  1. Local Logs:
  • Logs generated by UiPath processes running on a local machine are typically stored in:
    • Windows: C:\Users\<YourUsername>\AppData\Local\UiPath\Logs
    • Logs for each execution: Each log file includes timestamps and details based on the log level set.
  1. Orchestrator Logs:
  • If your processes are connected to UiPath Orchestrator, logs are uploaded and stored in Orchestrator.
  • You can view these logs by:
    • Navigating to the Jobs or Robots sections in Orchestrator.
    • Clicking on a specific job or robot to see detailed log messages.
    • Filtering logs by log level, time range, and other criteria.
      LLM helped me to write this but it’s verified by me.

Thanks,
Ashok :slight_smile:

Hi @A_Learner

To know about logging Levels check the below documentation

=> You can change the log Levels in UiPath Assistant.
Click on your name icon → Preferences → General → under EDR Protection you can see Log Level. you can change over there.

=> Impact of Changing Log Levels:

Trace to Info: When you change from Trace to Info, you’ll see fewer details in the logs. For example, variables’ detailed values and intermediate steps may not be logged at the Info level, whereas they would be at Trace.

=> Log Location:

  • Studio Logs: Logs generated in UiPath Studio can be found in %localappdata%\UiPath\Logs. These logs capture activities within Studio itself, like project loading and publishing.

  • Execution Logs: Logs generated during the execution of workflows (e.g., when run from UiPath Robot) are stored in %localappdata%\UiPath\Logs. They include execution details based on the selected log level.

  • Log Files: Each run generates a separate log file. The naming convention typically includes the project name, timestamp, and execution details.

LLM helped me to write this answer but it’s validated by me!

Hope you understand!!

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