-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fix configurable log level #2
Comments
In both |
Created issue pinojs/pino#2130 |
Use custom workaround for desired behaviorPlanning to create a map of known child loggers. Then add a const loggerChildren = new Map()
// ...
logger.addListener('level-change', (level, _val, _prevLevel, _prevVal, source) => {
if (source === loggerRoot) {
for (let loggerChild of loggerChildren.values()) {
loggerChild.level = level
}
}
}) |
I will go with a custom |
The text was updated successfully, but these errors were encountered: