Open niftylettuce opened 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.
signale
consola
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?
.child
prevLogger
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.
In development mode, other loggers such as
signale
andconsola
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 theprevLogger
, it simply re-usesprevLogger
to do the logging?