Open tal-rofe98 opened 4 months ago
Please provide a minimal reproducible example. Doing so will help us diagnose your issue. It should be the bare minimum code needed to trigger the issue, and easily runnable without any changes or extra code.
You may use a GitHub repository to host the code if it is too much to fit in a code block (or two).
I want to follow this example: https://www.npmjs.com/package/pino-http#use-as-express-middleware
but I also want to provide the
logger()
call with the request object. Something like this:But it does not work (it crashes my server). Is it even possible?