Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

access CORE logger results from within an action?

ursboller
Community Advisor
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

 

1 Accepted Solution
duypnguyen
Correct answer by
Employee
Employee

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.

View solution in original post

3 Replies
duypnguyen
Correct answer by
Employee
Employee

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.

View solution in original post

ursboller
Community Advisor
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....
ursboller
Community Advisor
Community Advisor
@duypnguyen I endended up writing my own logger - closing this question...