Closed
Description
Use case
We were transitioning some lambdas from logging with Pino to Powertools and encountered a conflict when setting the LOG_LEVEL
constant.
When setting the LOG_LEVEL
constant to 'WARN', Pino would throw an error as it would expect warn
.
Solution/User Experience
I'm proposing POWERTOOLS_LOG_LEVEL
is added. It aligns w/ the other environment naming conventions yet allows for specific targeting for AWS Powertools without any side effects.
The current LOG_LEVEL
would remain, but POWERTOOLS_LOG_LEVEL
would take precedence if present.
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, and .NET
Future readers
Please react with 👍 and your use case to help us understand customer demand.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Shipped