New issue
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
Feature request: create child logger we prebound meta data #913
Comments
yes. something like this is needed. +1 |
+1 |
there is a serious need for that. For example - in any API web serviceyou want to log |
I have the same problem!
Any thoughts? |
Just use winston-context ( search in npm packages ). It allows you to create a child logger with bound context ( custom metadata ). We use it to log API calls- each call will have a unique ID . That ID will be used for al log messages that are created during one API call.
|
Still no love for this one? This seems a pretty basic need other loggers implements since ages :/ |
Second 👍 for winston-context |
It's really a "standard" feature for loggers, I really wonder how it got missed out in the design... |
+1 |
3 similar comments
+1 |
+1 |
+1 |
@indexzero I am thinking about picking this one up, could you share some of your design vision how this could look within existing architecture and where the appropriate code should go? |
Fixed in #1471. Will be released in |
I would like to create a child logger with some prebound meta data. I pass around the logger to different parts of my applications and find it very convenient to bind some information about that process just once.
The text was updated successfully, but these errors were encountered: