-
Notifications
You must be signed in to change notification settings - Fork 847
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
Access log level in logMethod hook #909
Comments
It is not needed as you can get it with https://github.com/pinojs/pino/blob/83d80f63888aa0b68479d460706644c58257131c/docs/api.md#levels. logger.levels.values[method] |
@mcollina could you provide exact solution? I try to call To see logs just make some change, i.e. add enter and press cmd+s, it will re-run server and logs come up in terminal window |
Actually I was wrong, that's not feasible right now. What's your use case exactly? |
Support would need to be added at: Lines 30 to 35 in 95856d1
|
I want to provide more info about what kind of logs we are logging in node server. It will help us to track new problems when error logs count was increased. For now I can track only total amount of logs. |
I suggest this solution:
|
Please avoid creating a new object, e.g. |
FYI, this appears to have been resolved but never closed. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I want to collect logs number statistics and I want also to categorize them by levels.
For now I cant get level from logMethod hook, so I cant collect info about method types, lets add it to logMethod hook:
The text was updated successfully, but these errors were encountered: