pino-http
pino-http copied to clipboard
🌲 high-speed HTTP logger for Node.js
customProps always logs duplicate keys. I am working with google cloud logging and it doesn't play nicely with the duplicate keys: ```js customProps(req) { // adds a custom object to...
I currently am using pino-http to map to an ECS format. When doing so though my redactions are not taking place. ```typescript redact: { paths: ['http.request.headers.authorization'], censor: '***REDACTED***', }, customAttributeKeys:...
It's currently hard to implement following behavior with pino-http: 1. Log request **with headers, url, request params and other required info.** 2. Process request and call `log` multiple times during...
Their time is overdue and the deprecated functionality should be removed.
Fixes https://github.com/pinojs/pino-http/issues/209
I think pino should be a [peer dependency](https://nodejs.org/es/blog/npm/peer-dependencies/) (and [also a dev dependency](https://betterprogramming.pub/understanding-dev-peer-and-regular-dependencies-in-javascript-f4090621c7a7#:~:text=you%20also%20must%20include%20it%20in%20your%20devDependencies%20section)) of pino-http. I'm trying to use a pre-release version of pino, but since pino-http has a direct...
## Use case We want to log request time in the log message ## Code ```js function customSuccessMessage (res) { return `request completed ${res.req.method} ${res.req.url} ${res.statusCode} ${???.responseTime}ms` } ``` we...
For human readable logs I think it makes sense to have a log at the beginning of the request and at the end so it's easy to see in the...
Now pino 7 is including TypeScript types, would it make sense to include TypeScript types in this package as well? The types in DefinitelyTyped for this package don't work with...
```ts app.use( pinoMiddleware({ logger, customLogLevel: res => { return res.statusCode >= 500 ? 'warn' : 'info' }, serializers: { req: numbRequest, res: numbResponse } }) ) ``` ```ts export const...