We are writing an application that uses our http api, and sometimes it will encounter errors, failed connections, timeouts, etc.
We would like, at least in beta, to catch these incidents and somehow forward them to ourselves. Since it is obvious that many of these problems can be related to the fact that the actual connection is not working, this will have to queue these incidents and send them when there is a connection.
I tried to find the answer for this, but to no avail, I came across a bunch of solutions that catch exceptions, but not just random "incidents" (maybe just a line that we register somewhere, we would just include all the details in it).
Except for writing my own backup (or something), I don't understand what a solution there might be.
Does anyone know of any libs / services that could help with this?
source
share