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:
-
Log in to the Function Compute console.
-
In the left-side navigation pane, click Services & Functions.
-
On the Services page, click the service name.
-
On the page that appears, click the name of the function that you want to manage.
-
Click the Logs tab.
-
On the Logs tab, click Enable.
The logging feature is enabled for the function.
References
该文章对您有帮助吗?