mperdeck/jsnlog.js

JavaScript Error Handling mechanism should cache errors if offline and deliver as soon as client online

neooleg opened this issue · 3 comments

Issue

There is greate feature Javascript Error Handling which automatically catch unhandled errors.

However, the error is lost if user become offline and appeared online even for few seconds.

Solution

The logger should cache errors in offline (or if sending failed) and send them as soon as client become online.

Thanks for your suggestion! I implemented this in version 2.25.0. See
http://jsnlog.com/Documentation/HowTo/HandlingLostConnection

Does it use localstorage in case if page will be "refreshed"?

No it doesn't. So yes, if the user refreshes the page, the log entries are lost. Thanks for pointing this out. I'll add this to the to-do list.