Recently I have created a Chrome/Firefox extension and released it. However, after release, I got mails about the problems that users encountered. So, what I want to do is to add a report button that sends me all of the logs (default logs, errors, warnings) to a server that I created in text or json form.
I tried the suggestions on this question but the answers are only able to log the data that is logged by me manually such as console.log("Is that working?"), not the ones that are logged by browser such as Unchecked runtime.error.... How can I achieve this?
Here is a sample console output and I want to get all of it as json or text.