Expand my Community achievements bar.

SOLVED

access CORE logger results from within an action?

Avatar

Community Advisor

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

 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Employee

Hi @Urs_Boller - 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.

View solution in original post

3 Replies

Avatar

Correct answer by
Employee

Hi @Urs_Boller - 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.

Avatar

Community Advisor
oh - good to know! I'll give it a try! if this works, I could build a simple UI to access the logs - without the need to write a custom logger....

Avatar

Community Advisor
@duypnguyen I endended up writing my own logger - closing this question...