How do I view the execution logs of a custom function?

更新时间:
复制 MD 格式

After a custom function is executed, you can view its execution logs to troubleshoot issues at the earliest opportunity.

Procedure

To view execution logs, you must first enable the logging feature for the service to which the custom function belongs. After the feature is enabled, you can view the logs on the function details page. Perform the following steps to enable the logging feature:

  1. Log in to the Function Compute console.

  2. In the left-side navigation pane, click Services & Functions.

  3. On the Services page, click the service name.

  4. On the page that appears, click the name of the function that you want to manage.

  5. Click the Logs tab.

  6. On the Logs tab, click Enable.

    The logging feature is enabled for the function.

References