- 关于本指南
- 入门指南
- 正在安装
- 升级
- Connecting and licensing
- 配置
- Running workloads
- RPA processes and tests
- Agents, functions, and API workflows
- Limits
- Securing and governing
- 监控
- 故障排除
- 参考
日志字段
机器人日志条目中包含的默认字段和用户定义的字段,例如消息、级别、时间戳、作业 ID、流程名称和计算机身份。
A log entry contains several log fields, each holding a different information about the event being logged. Jobs for agents, functions, and API workflows share the job-level default fields with RPA jobs: jobId, robotName, machineId, robotVersion, userKey, organizationUnitId, processName, and processVersion. The FileName and activityInfo fields and the transaction fields appear only in RPA job logs. Agents, functions, and API workflows run only with Automation Cloud or Automation Suite Orchestrator, on robots connected with client credentials.
默认字段
- Message - The log message. Messages longer than 10,000 characters are truncated.
- Level - Defines the log level. The value is
Tracefor Verbose entries andFatalfor Critical entries. The other levels use their own names. - logType - Default for the entries the Robot writes, User for the entries your automation writes.
- 时间戳 - 所记录操作发生的确切日期和时间。
- fingerprint - A unique identifier of the log entry.
- FileName - The name of the workflow file being executed, without the file extension.
- jobId - The ID of the job running the process.
- processName - The name of the process that triggered the logging. Requires an active connection to Orchestrator.
- processVersion - The version number of the process. Requires an active connection to Orchestrator.
- windowsIdentity - The name of the user that performed the action that was logged.
- robotName - The name of the Robot (as defined in Orchestrator).
- machineName - The name of the robot machine.
- machineId - The id of the robot machine.
- robotVersion - The version of the Robot that ran the job.
- userKey - The key of the Orchestrator user or robot account that runs the job, when it's known.
- organizationUnitId - The ID of the Orchestrator folder.
You can't override the default fields using the Add Log Fields activity. The Robot ignores a custom field that has the same name as a field already on the log entry.
用户定义的字段
To define custom fields, use the Add Log Fields activity. These fields appear in all subsequent logs. To remove these fields from further logs, use the Remove Log Fields activity. Each custom field value is limited to 50,000 characters. The Robot replaces a longer value with [Exceeded maximum allowed size of 50000 characters] instead of truncating it.
Make sure to name your custom log fields different from the default log fields. A custom field that has the same name as a default field is not added to the log entry.
特定于类型的字段
这些日志会按日志类型显示:
对于“执行结束”默认日志,包含以下字段:
- 总执行时间(秒)
- 总执行时间
对于“事务开始”默认日志,包含以下字段:
- 队列名称
- 交易 ID
- 交易说明
- 初始化人员
对于“事务结束”默认日志,包含以下字段:
- 队列名称
- 交易 ID
- 交易说明
- 交易状态
- 事务执行时间
- 处理异常的类型
- 处理异常的原因
- 队列项目审核状态
- 队列项目优先级
对于“调试日志”默认日志,包含以下字段:
- 活动信息,是包含以下字段的 JSON 消息:
- 显示名称
- “状态”(故障、已关闭、正在执行)
- 活动
- 参数