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
I successively followed the RequestId section in the readme. I have now a requestId field in my logObj.
RequestId
requestId
logObj
But if I try to overwrite formatLogObj to display the requestId in the console, I can't find the field/value.
formatLogObj
Am i doing something wrong, is it not supported yet ? Or in other words, how to display requestId in the log.
I thought of having the default log as quiet and let a new transport do all the work but it seems a little overkill.
Edit: I finally succeed with
overwrite: { toLogObj(args, clonesLogObj) { const fullLogObj = { ...args, ...(clonesLogObj as ILogObjReqId)} args.unshift(clonesLogObj?.requestId) return fullLogObj },
But it mutate args wich I don't really like. If someone has a better idea
args
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I successively followed the
RequestId
section in the readme.I have now a
requestId
field in mylogObj
.But if I try to overwrite
formatLogObj
to display the requestId in the console, I can't find the field/value.Am i doing something wrong, is it not supported yet ?
Or in other words, how to display
requestId
in the log.I thought of having the default log as quiet and let a new transport do all the work but it seems a little overkill.
Edit:
I finally succeed with
But it mutate
args
wich I don't really like.If someone has a better idea
The text was updated successfully, but these errors were encountered: