-
-
Couldn't load subscription status.
- Fork 1.7k
feat(node): Allow selective tracking of pino loggers
#17933
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
Conversation
size-limit report 📦
|
node-overhead report 🧳Note: This is a synthetic benchmark with a minimal express app and does not necessarily reflect the real-world performance impact in an application.
|
|
Can we add a test for child loggers as well here? |
Looks like that test will fail. I'll fix that and include the additional test in another PR. |
This PR adds two methods to the
pinoIntegrationexport.trackLoggeranduntrackLogger;untrackLoggercan be used to disable capturing from a specific logger.You can also disable
autoInstrumentand only track specific loggers: