We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stream.write
I love what Morgan does, but I only have the need to customize this line:
stream.write(line + '\n')
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:
stream.write(line, ...customStuffThatDependsOnUpdatedRes)
Is there a way I can do that?
The text was updated successfully, but these errors were encountered:
Noticed that this is addressed by #272
Sorry, something went wrong.
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
.write
writable.write(chunk[, encoding][, callback])
No branches or pull requests
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?
The text was updated successfully, but these errors were encountered: