Use nebula inside Aura init method? #907
Unanswered
ministe2003
asked this question in
Q&A
Replies: 1 comment
-
Commenting on my own question to post the solution I ended up with.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi. Is it in any way possible to use nebula logger inside an Aura's init function? I'm trying to replace any and all logging in my current org with nebula and we have console statements inside init which I'd like to replace, but logger doesn't seem to be ready at this point and so it fails.
To prove the issue, take the aura example component and add
<aura:handler name="init" action="{!c.doInit}" value="{!this}"/>
to the markup, then add a doInit function likeThe log will fail to be created.
Is this a hard NO or is there a workaround? I know I could move the functionality into a different event however as mentioned I'm trying to replace existing logging inside existing functionality which is required to be inside the init function.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions