insights
2022.4
false
- 发行说明
- 入门指南
- 访问和权限
- 与 Insights 交互
- 日志
- 配置日志规则
重要 :
请注意此内容已使用机器翻译进行了部分本地化。
新发布内容的本地化可能需要 1-2 周的时间才能完成。
Insights
配置日志规则
机器人日志可捕获诊断日志和执行日志。您可以配置 Insights 用于提取机器人日志的条件。例如,您只想捕获包含特定名称的流程的日志。
有关更多信息,请参阅机器人日志。
您可以在
nlog.custom.config
文件中配置 Orchestrator 设置。要修改设置,请执行以下步骤:
- Place the new log rules inside the
nlog.custom.config
file. Check the details below for an example:{ "10_Robot_Insights": { "logger": "Robot.*", "ruleName": "insightsRobotLogsRule", "minLevel": "Info", "writeTo": "insightsRobotLogs", "enabled": false, "final": false, "filters": { "defaultAction": "Ignore", "conditions": [ { "condition": "level >= LogLevel.Error or ends-with('${message}', ' execution ended')", "action": "Log" } ] } } }
{ "10_Robot_Insights": { "logger": "Robot.*", "ruleName": "insightsRobotLogsRule", "minLevel": "Info", "writeTo": "insightsRobotLogs", "enabled": false, "final": false, "filters": { "defaultAction": "Ignore", "conditions": [ { "condition": "level >= LogLevel.Error or ends-with('${message}', ' execution ended')", "action": "Log" } ] } } } - Use the Orchestrator Configurator Tool to update
the configuration. Use the following command to merge the keys from the custom
nlog.custom.config
file with the settings already available in theorchestrator-customconfig
configuration map.This command does not remove any existing settings../orchestrator-configurator.sh -l nlog.custom.config
./orchestrator-configurator.sh -l nlog.custom.config
In the following example we are only sending logs that are above a certain level or contain the message that the execution has ended:
{
"10_Robot_Insights": {
"logger": "Robot.*",
"ruleName": "insightsRobotLogsRule",
"minLevel": "Info",
"writeTo": "insightsRobotLogs",
"enabled": false,
"final": false,
"filters": {
"defaultAction": "Ignore",
"conditions": [
{
"condition": "level >= LogLevel.Error or ends-with('${message}', ' execution ended')",
"action": "Log"
}
]
}
}
}
{
"10_Robot_Insights": {
"logger": "Robot.*",
"ruleName": "insightsRobotLogsRule",
"minLevel": "Info",
"writeTo": "insightsRobotLogs",
"enabled": false,
"final": false,
"filters": {
"defaultAction": "Ignore",
"conditions": [
{
"condition": "level >= LogLevel.Error or ends-with('${message}', ' execution ended')",
"action": "Log"
}
]
}
}
}