Closed agnjunio closed 1 year ago
Noticed that this is addressed by https://github.com/expressjs/morgan/pull/272
Hi @agnjunio there isn't, but .write
method cannot accept just random extra parameters, it seems. This is the method signature: https://nodejs.org/api/stream.html#writablewritechunk-encoding-callback
writable.write(chunk[, encoding][, callback])
I love what Morgan does, but I only have the need to customize this line:
I want to be able to pass custom req.properties as metadata to my logger, so in my use-case I would need morgan to call:
Is there a way I can do that?