Want to implement Global Exception handler
bandlachiranjeevi opened this issue · comments
bandlachiranjeevi commented
Support plan
- is this issue currently blocking your project? (yes/no):
- is this issue affecting a production system? (yes/no):
Context
- node version:
- module version:
- environment (e.g. node, browser, native):
- used with (e.g. hapi application, another framework, standalone, ...):
- any other relevant information:
How can we help?
const some = 'properly formatted code example';
Nicolas Morel commented
Mind being more specific than just the title?
bandlachiranjeevi commented
Hi, Actually I am using @hapi/hapi package to load my node server. I want to handle exception handler globally. when there is error in any route I want to capture the logs using exception handler.
Nicolas Morel commented
That would be https://hapi.dev/api/?v=21.3.2#-request-event 2nd example I believe.