hapijs / hapi

The Simple, Secure Framework Developers Trust

Home Page:https://hapi.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Want to implement Global Exception handler

bandlachiranjeevi opened this issue · comments

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';

Mind being more specific than just the title?

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.

That would be https://hapi.dev/api/?v=21.3.2#-request-event 2nd example I believe.