pino-http icon indicating copy to clipboard operation
pino-http copied to clipboard

🌲 high-speed HTTP logger for Node.js

Results 44 pino-http issues
Sort by recently updated
recently updated
newest added

In the documentation, it is noted that there's an option "logger" which can be passed > logger: pino-http can reuse a pino instance if passed with the logger property However,...

The multiple-line logs in console feel a bit verbose during development. Is there an easy (less custom code) way to output a simple one-line log for each request similar as...

I have an issue : when my client cut the connection (generally because of a timeout), then pino-http does not log anything. The default behavior of express is to continue...

Timers are known to cause flaky test. It's important we fix this before it hit us.

good first issue

I tried this: ```js req.log = req.log.child({ something: true }); ``` but it didn't work. After digging into sourcecode I found this: https://github.com/pinojs/pino-http/blob/a7c82bc2d82847ba6692b20de1e7d2b65c4a1624/logger.js#L44 `this` refers to `res` object, so that...

The `request-received` middleware at https://github.com/cabinjs/request-received exposes a `Symbol.for` property, which this package could conditionally consume if interested (as opposed to just generating a `new Date()`. e.g. https://github.com/pinojs/pino-http/blob/master/logger.js#L63 would change as...

With TypeScript and Koa, I have no good way to add a property to the request object. This means I cannot use the same ID I'm sending to the user...

This module reads from `req.id`: https://github.com/pinojs/pino-http/blob/ef7b7e4fdfad2d914597b622a428b375ed15b563/logger.js#L98 However this property doesn't seem to be documented anywhere. It's not something provided by Express, for example. Could we add some docs to specify...

In development mode, other loggers such as `signale` and `consola` are extremely useful for being developer-friendly and easy on the eyes. Might we be able to patch https://github.com/pinojs/pino-http/blob/master/logger.js#L76-L77 such that...

Now that pinojs/pino#317 has been merged, add pre-defined formatters for **development**. [Morgan logger](https://github.com/expressjs/morgan#dev) has a predefined `dev` formatter, which makes adding the logger during development quick and easy. Adding similar...