Closed
Description
Use case
I found out, that I need to pass the LogFormatter to every child. It would be nice to forward the parents LogFormatter as the default to a child logger (via createChild) if no other LogFormatter was provided in that method.
Solution/User Experience
So if logger.createChild({}) is called without logFormatter it could just get the same instance, the parent is using.
Alternative solutions
No response
Acknowledgment
- This feature request meets Lambda Powertools Tenets
- Should this be considered in other Lambda Powertools languages? i.e. Python, Java