UiPath Documentation
automation-suite
2023.4
false
Linux 版 Automation Suite 安装指南
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。

配置日志规则

概述​

机器人日志可捕获诊断日志和执行日志。您可以配置 Insights 用于提取机器人日志的条件。例如,您只想捕获包含特定名称的流程的日志。

有关更多信息,请查看机器人日志。

配置日志规则​

备注:
  • 只有管理员才能更改 Orchestrator 配置文件中的值。
  • 在继续之前备份 UiPath.Orchestrator.dll.config 文件。您可以在 C:\Program Files (x86)\UiPath\Orchestrator 中找到该文件。
  • 更改 Orchestrator 配置文件后重新启动网站。
  • 所有参数都区分大小写。
  • 为获得最佳性能,两年内生成的机器人日志不应超过 2 亿条记录。
  • 使用 NLog 配置文件在您的环境中捕获与 Insights 相关的数据,并减少机器人日志生成的记录数量。
  1. 导航到 C:\Program Files (x86)UiPath\Orchestrator,然后打开 UiPath.Orchestrator.dll.config 文件以修改 Orchestrator 设置。
  2. 查找“机器人日志”参数(例如 <logger name="Robot.*" environmentSpecificConfiguration/>)
  3. 使用默认操作配置筛选条件(例如 filters defaultAction="Ignore")。
  4. Configure conditions based on the log level or other events (see Log rules example).
  5. 保存文件并重新启动 Orchestrator。

有关配置 Orchestrator 配置文件的更多信息,请参阅UiPath.Orchestrator.dll.config 。

日志规则示例​

以下示例显示了 Info 和 Error 级别日志的自定义日志规则配置。通过设置特定条件,Insights 将仅针对您配置的流程提取日志。

{
  "10_Robot_Insights": {
    "enabled": false,
    "final": false,
    "logger": "Robot.*",
    "minLevel": "Info",
    "ruleName": "insightsRobotLogsRule",
    "writeTo": "insightsRobotLogs"
  }
}
{
  "10_Robot_Insights": {
    "enabled": false,
    "final": false,
    "logger": "Robot.*",
    "minLevel": "Info",
    "ruleName": "insightsRobotLogsRule",
    "writeTo": "insightsRobotLogs"
  }
}
  • 概述​
  • 配置日志规则​
  • 日志规则示例​

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新