3

I want to programatically dump logs from OpenWhisk in to an external service. I can do this by capturing log output and then posting it at the end of every action but this adds overhead to my function.

Is there a way to get this data from the OpenWhisk API similar to wsk activation logs ACTIVATION_ID?

4

1 回答 1

2

操作日志可通过平台 API获得。stdout操作 (或) 的控制台输出stderr存储在激活记录中。

可以通过向以下端点发送 HTTP 请求来访问激活记录: /namespaces/{namespace}/activations/{activationid}/logs

用于访问 API的客户端库可用于多种语言

于 2017-12-19T17:23:02.897 回答