Replies: 1 comment 10 replies
-
I tried using this method based on the recipe:
But anytime I add the setError method, the dev console throws an error: |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
I'm testing out the unmanaged package and noticed that when an LWC logs an entry, the Component Name and Function are null. I can find the LWC name buried in the stack trace, but I was wondering if there was a way to populate these fields?
I'm using the
import { createLogger } from 'c/logger';
method and below is the snippet that creates the log:this.logger.error(errMessage); this.logger.saveLog().then(() => { console.log('done with async save'); });
Beta Was this translation helpful? Give feedback.
All reactions