Log

更新时间:
复制 MD 格式

1. Overview

Note

Prerequisite packages: none

You can use the Log package to print logs in Alibaba Cloud Robotic Process Automation (RPA).

2. Input parameters

The following table describes the types of logs provided by Alibaba Cloud RPA.

Log type

Encoding SDK

Log location

Remarks

Debug

logger.debug()

Local device

Specific directories where local logs are stored:

  • Logs of RPA Studio: C:\Users\<Username>\AppData\Roaming\AlibabaCloudRPA\log\debug.log

  • Logs of RPA Robot: C:\Users\<Username>\AppData\Roaming\AlibabaCloudRPA\log\run.log

Information

logger.info()

Local device and server (for viewing the logs in the Alibaba Cloud RPA console)

Important

Take note of the following limits:

  • If the logs are reported to the server too frequently, automatic throttling is triggered.

  • The Alibaba Cloud RPA console displays only the logs of ongoing tasks and tasks that ended within previous three days.

Warning

logger.warn()

Error

logger.error()

3. Output parameters

Note

For more information, see the instructions for the output parameters of the package in RPA Studio.

4. Example on how to use the package

4.1 Configure the package

  1. Select Information from the Log Type drop-down list.

  2. Enter "Test log printing" in the Log Content field.

4.2 Sample result

The log content is displayed in the Log Panel section.