customErrorMessage actually got passed 4 arguments:
|
errorMessage(req, res, error, responseTime) |
, but its ts declaration only has 3 arguments:
|
customErrorMessage?: ((req: IM, res: SR, error: Error) => string) | undefined; |
I'd like to make use of the 4th argument "responseTime" in my logging message.
customErrorMessageactually got passed 4 arguments:pino-http/logger.js
Line 123 in 8baaeec
, but its ts declaration only has 3 arguments:
pino-http/index.d.ts
Line 34 in 8baaeec
I'd like to make use of the 4th argument "responseTime" in my logging message.