access CORE logger results from within an action? | Community
Skip to main content
Urs_Boller
Community Advisor
Community Advisor
September 28, 2020
Solved

access CORE logger results from within an action?

  • September 28, 2020
  • 1 reply
  • 1630 views

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:

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by duynguyen_adobe

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.

1 reply

duynguyen_adobeAdobe EmployeeAccepted solution
Adobe Employee
September 28, 2020

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.

Urs_Boller
Community Advisor
Community Advisor
September 28, 2020
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....