Someone in the company thinks it is going to be a good idea to log client side (javascript) errors to the server. No one on the team thinks it is a good idea but need to come up with enough reasons as to why not.
After some research there is no real magic way to do it aside from an ajax back to the server - so will incur performance overhead.
Seen some older posts overriding window.onerror instead of try catch everywhere (and then make an ajax call in there that posts error message to server) but have seen some comments that window.onerror no longer works in some browsers - is this true?
In summary, is there a clean way to do this that would not a.) impact performance or b.)muck up original javascript code with a bunch of try catch's etc. and c.) will work cross platform on modern browsers and d.) has very minimal chance of causing any other headaches? Thanks!


Reply With Quote
Bookmarks