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

Add support for other loggers

Open niftylettuce opened this issue 5 years ago • 1 comments

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?

niftylettuce avatar Sep 23 '18 18:09 niftylettuce

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.

mcollina avatar Sep 24 '18 11:09 mcollina