I'm developing small MEAN application. and I have developed good error handling at angularJS part (UI Part). But still I am lacking to handle error properly from Backend part - ExpressJS (Rather NodeJS). ExpressJS also consume Web Services (AWS).
I have already read different stackoverflow posts regarding 'uncaughtException', 'domains'. Some post suggest to start-node again using packages like forever or node cluster. But I didn't find consolidated solution to handle NODE errors.
Can anyone suggest me end to end proper workflow with some best pattern and practices to be followed to handle NodeJS error. I am looking for error handling and logging mechanism same time.
Thank you very much in advance.