JavaScript Error Handling mechanism should cache errors if offline and deliver as soon as client online
neooleg opened this issue · 3 comments
neooleg commented
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.
mperdeck commented
Thanks for your suggestion! I implemented this in version 2.25.0. See
http://jsnlog.com/Documentation/HowTo/HandlingLostConnection
neooleg commented
Does it use localstorage in case if page will be "refreshed"?
mperdeck commented
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.