pinojs / pino-http

🌲 high-speed HTTP logger for Node.js
MIT License
539 stars 117 forks source link

Add support for other loggers #53

Open niftylettuce opened 6 years ago

niftylettuce commented 6 years ago

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 if no .child method is available on the prevLogger, it simply re-uses prevLogger to do the logging?

mcollina commented 6 years ago

I think it would be out of scope here. However, we might want to do a pino-signale module similar to how pino-pretty works.