I've built a socket server which logs all it proccesses in a text file.
For now, the server runs in the background and has no UI.
Is there a way for me to catch ALL run time errors (not just the ones throwing exeptions) include null pointers etc. and log it to a file for monitoring?