generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 180
Closed as not planned
Closed as not planned
Copy link
Labels
feature-requestThis item refers to a feature request for an existing or new utilityThis item refers to a feature request for an existing or new utilityloggerThis item relates to the Logger UtilityThis item relates to the Logger UtilityrejectedThis is something we will not be working on. At least, not in the measurable futureThis is something we will not be working on. At least, not in the measurable future
Description
Use case
Hi all,
I am very happy with the ability to pretty print locally, but because I am using SST, it would be easier for me to enable devmode in code than to set it as an environment variable. I currently need to do this, which works but feels very hacky:
if (Resource.App.stage != 'staging' && Resource.App.stage != 'develop' && Resource.App.stage != 'production') {
process.env.POWERTOOLS_DEV = "true";
}Solution/User Experience
Something like this would be great:
const logger = new Logger({
...,
devMode: true
});Alternative solutions
Acknowledgment
- This feature request meets Powertools for AWS Lambda (TypeScript) Tenets
- Should this be considered in other Powertools for AWS Lambda languages? i.e. Python, Java, and .NET
Future readers
Please react with 👍 and your use case to help us understand customer demand.
MarcDOLF
Metadata
Metadata
Assignees
Labels
feature-requestThis item refers to a feature request for an existing or new utilityThis item refers to a feature request for an existing or new utilityloggerThis item relates to the Logger UtilityThis item relates to the Logger UtilityrejectedThis is something we will not be working on. At least, not in the measurable futureThis is something we will not be working on. At least, not in the measurable future
Type
Projects
Status
Closed