Feature request: Reusing previous logger instance when already instantiated #1398
Closed
1 of 2 tasks
Labels
duplicate
This issue is a duplicate of an existing one
feature-request
This item refers to a feature request for an existing or new utility
logger
This item relates to the Logger Utility
Use case
As far as I can tell, calling
new Logger()
instantiates a new logger, which means we can't access previously appended keys across the code.Solution/User Experience
It would be great if a new instance that uses the same service name - env var or explicit parameter - would reuse a previous Logger instance, as it's the case for the Python Powertools
Alternative solutions
No response
Acknowledgment
Future readers
Please react with 👍 and your use case to help us understand customer demand.
The text was updated successfully, but these errors were encountered: