Logging witihin NodeLogic
This is probably a very basic Javascript question...
Consulted he documentation and yes there is logging but it is only available (scoped) in the default export function.. I want to log in the other functions... how do I get this to work?
Consider the following:
Thanks in advance!
Solution:Jump to solution
Hey @Abrar, you can do this by passing the
logging
as a parameter to other functions.
Check this updated code:
```JS...2 Replies
Solution
Hey @Abrar, you can do this by passing the
logging
as a parameter to other functions.
Check this updated code:
Hope this helps!thanks I did something similar, just thought there was a cleaner way of declaring the logger to global scope so don't have to pass it into each function in the script as a param