const { httpPrintFactory } = require('pino-http-print') const printer = httpPrintFactory() const logger = require('express-pino-logger')(printer)Same for koa-pino-logger and restify-pino-logger, just pass in the printer stream.APIhttpPrintFactory(options, pinoPrettyOptions) => ( Function([...
{customProp:req.customProp,// user request-scoped data is in res.locals for express applicationscustomProp2:res.locals.myCustomData}}})functionhandle(req,res){logger(req,res)req.log.info('something else')res.log.info('just in case you need access to logging when only the response is in...