How can I track plugin's exceptions?
I wanna get info about plugin's exceptions. What's the best way to implement it? Do you have any kind of such api?
Pretty similar question: can I use log4 or logback? Can I use external appenders (like https://logentries.com/doc/java/ )
Please sign in to leave a comment.
For custom error reporting, see com.intellij.openapi.diagnostic.ErrorReportSubmitter
Hi Yann,
I have a related question for you.
Is it possible to use the mentioned component to create reports to GitHub or other bug trackers? I can definitely tackle the implementation of that but I'd like to know if that's the right place to do it or not. And if not, can you think of an alternative?
Thank you.
Yes, absolutely. See Android Studio custom submitter com.android.tools.idea.diagnostics.error.ErrorReporter for some inspiration.
Hi Yann,
Thanks once again for your help.
While I have no idea if I've properly respected the copyright on those files or not, I've managed to make it work: https://github.com/go-lang-plugin-org/go-lang-idea-plugin/pull/909
Do you think it's worth adding it to the list of documentation / FAQ so that other people know how to also benefit from this feature?
Thank you.
Kind regards,
Florin
Thanks for your sample, added to FAQ.
@Florin Since your post here tipped me off to look at the Android Studio error handling, I just wanted to say thanks (of course to Yann as well!). I used this as basis for my own error reporter and since information are generally hard do find I wrote a post about this specific feature: Automatic error reporting to GitHub issues