robot
latest
false
重要 :
新发布内容的本地化可能需要 1-2 周的时间才能完成。
UiPath logo, featuring letters U and I in white

机器人管理员指南

上次更新日期 2025年9月25日

日志存储

Orchestrator 存储

When the Robot is connected to Orchestrator, only logs matching the level set in Assistant or Orchestrator appear on the Logs page. If Orchestrator is unavailable, logs are stored in a local path - C:\Windows\System32\config\systemprofile\AppData\Local\UiPath\Logs\execution_log_data, within the available disk space, until the connection is restored. When the connection is restored, the logs are sent in batches in the order they had been generated.

NLog 存储

重要提示:

Robot 更新将覆盖并重置此文件,删除之前的任何编辑内容。

此外,可以通过编辑 NLog.config 文件来配置日志存储。“内部”类型记录器会收集诊断日志,并且系统通过使用 NLog 目标即可转发该类日志。默认情况下,执行日志存储在 %LocalAppData%\UiPath\Logs 文件夹的某个文件中。“WorkflowLogging”记录器会收集执行日志,并且系统通过使用 NLog 目标即可转发该类日志,如下方 NLog.config 文件中的参数所示:
<?xml version="1.0" encoding="utf-8" ?>
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <variable name="WorkflowLoggingDirectory" value="${specialfolder:folder=LocalApplicationData}/UiPath/Logs" />
  <rules>
    <logger name="WorkflowLogging" writeTo="WorkflowLogFiles" final="true" />
  </rules>
  <targets>
    <target type="File" name="WorkflowLogFiles" fileName="${WorkflowLoggingDirectory}/${shortdate}_Execution.log" layout="${time} ${level} ${message}" keepFileOpen="true" openFileCacheTimeout="5" concurrentWrites="true" encoding="utf-8" writeBom="true" />
  </targets>
</nlog><?xml version="1.0" encoding="utf-8" ?>
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <variable name="WorkflowLoggingDirectory" value="${specialfolder:folder=LocalApplicationData}/UiPath/Logs" />
  <rules>
    <logger name="WorkflowLogging" writeTo="WorkflowLogFiles" final="true" />
  </rules>
  <targets>
    <target type="File" name="WorkflowLogFiles" fileName="${WorkflowLoggingDirectory}/${shortdate}_Execution.log" layout="${time} ${level} ${message}" keepFileOpen="true" openFileCacheTimeout="5" concurrentWrites="true" encoding="utf-8" writeBom="true" />
  </targets>
</nlog>

按机器人模式划分的日志存储

根据运行自动化的用户类型,机器人日志的存储方式不同,这些用户可以是本地用户(适用于用户模式机器人)或本地系统用户(适用于服务模式机器人):

日志类型

服务模式机器人的存储

用户模式机器人的存储

.log 格式的执行日志

  • Windows OS—C:\Users\user\AppData\Local\UiPath\Logs
  • Windows OS—%LocalAppData%\UiPath\Logs
  • Linux—~/.local/share/UiPath/Logs
  • MacOS—~/Library/Application Support/UiPath/Logs

LiteDB 格式的执行日志

  • Windows OS—C:\Windows\System32\config\systemprofile\AppData\Local\UiPath\Logs\execution_log_data
  • Windows OS—%LocalAppData%\UiPath\Logs\execution_log_data
  • Linux—~/.local/share/UiPath/Logs/execution_log_data
  • MacOS—~/Library/Application Support/UiPath/Logs/execution_log_data

诊断(或内部)日志

  • Windows OS—%ProgramData%\UiPath\Logs\internal
  • Windows OS—%LocalAppData%\UiPath\Logs\internal
  • Linux—~/.local/share/UiPath/Logs/internal
  • MacOS—~/Library/Application Support/UiPath/Logs/internal

更新日志

  • Windows OS—%ProgramData%\UiPath\UpdateService\Logs
  • Windows OS—%LocalAppData%\UiPath\UpdateService\Logs
  • Linux—~/.local/share/UiPath/UpdateService/Logs
  • MacOS—~/Library/Application Support/UiPath/UpdateService/Logs
  • Orchestrator 存储
  • NLog 存储
  • 按机器人模式划分的日志存储

此页面有帮助吗?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath Logo
信任与安全
© 2005-2025 UiPath。保留所有权利。