Feature Request
Example code for drop in (window)console.error replacement
Deleted User
In our web app we make extensive use of console.error
(and some usages of console.warn
),
which I would like to route to Raygun.
Unfortunately it is also often used with the "try catch swallow" anti-pattern
So I would like to be able to do a find and replace of console.error
for raygunConsole.error
(or something like that)
One which handles each of:
try{ /*code*/ }
catch(error){
console.error(error);
console.error("some message", error);
console.error("some message")
console.error("some message", {/*custom data*/});
}
Keeping the stack trace would be nice too :D
Also sending the messages to console.error
would be nice for when we are debugging.
I have a work in progress, if you would like me to share it with you.
Thoughts?