How to log the segmentation faults and run time errors which can crash the program, through a remote logging library?
c++, logging
Solution
Here is the solution for printing backtrace, when you get a segfault, as an example what you can do when such an error happens.
That leaves you a problem of logging the error to the remote library. I would suggest keeping the signal handler, as simple, as possible and logging to the local file, because you cannot assume, that previously initialized logging library works correctly, when segmentation fault occured.
Problem
What is the technique to log the segmentation faults and run time errors which crash the program, through a remote logging library? The language is C++.