Skip to content

Feature request: support POWERTOOLS_LOG_LEVEL environmental variable #1353

Closed
@nateiler

Description

@nateiler

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.

Metadata

Metadata

Assignees

Labels

confirmedThe scope is clear, ready for implementationfeature-requestThis item refers to a feature request for an existing or new utilityloggerThis item relates to the Logger Utility

Type

No type

Projects

Status

Shipped

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions