Closed katlimruiz closed 4 years ago
I'm guessing this would be how?
https://github.com/pinojs/pino-http
var logger = require('pino-http')({
// Define custom serializers
serializers: {
err: pino.stdSerializers.err,
req: pino.stdSerializers.req,
res: pino.stdSerializers.res
},
But then I would have to import stdserializers to my own project, right? That seems lacking encapsulation.
Hi
So I want to remove some headers from the req log object.
According to my research I would have to modify the static
pino.serializers
object, and hook into that. However, since I'm using koa-pino-logger, I don't seem to find a way to do it from the outside.How can I access to the internal pino object?