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
Future readers
Please react with 👍 and your use case to help us understand customer demand.
Use case
We were transitioning some lambdas from logging with Pino to Powertools and encountered a conflict when setting the
LOG_LEVELconstant.When setting the
LOG_LEVELconstant to 'WARN', Pino would throw an error as it would expectwarn.Solution/User Experience
I'm proposing
POWERTOOLS_LOG_LEVELis added. It aligns w/ the other environment naming conventions yet allows for specific targeting for AWS Powertools without any side effects.The current
LOG_LEVELwould remain, butPOWERTOOLS_LOG_LEVELwould take precedence if present.Alternative solutions
No response
Acknowledgment
Future readers
Please react with 👍 and your use case to help us understand customer demand.