access CORE logger results from within an action?

ursboller

MVP

28-09-2020

is there an option to access the results from the CORE logger from within an action? Basically access the data which can be fetched from console using "aio rt activation list/get" but within an action. Idea is to have an UI which displays the log results.
Currently I have written my own logger which stores some basic debug information within a file in aio-lib-files but it would be more flexibel and future-proof if I could access the CORE logger directly.
Here is a screenshot from my own logger which I would love to replace by accessing the "aio rt activation" information:

ursboller_0-1601284303982.png

 

Accepted Solutions (1)

Accepted Solutions (1)

duypnguyen

Employee

28-09-2020

Hi @ursboller - It would be possible using the openwhisk npm, particularly ow.activations.logs (I couldn't find the example in docs, but here is the API: https://github.com/apache/openwhisk-client-js/blob/master/lib/activations.js#L35). I am yet to try it though, will do later today.

Answers (0)