-
Notifications
You must be signed in to change notification settings - Fork 168
Closed
Labels
completedThis item is complete and has been merged/shippedThis item is complete and has been merged/shippeddocumentationImprovements or additions to documentationImprovements or additions to documentationloggerThis item relates to the Logger UtilityThis item relates to the Logger Utility
Description
Expected Behaviour
The docs state that Logger
's constructor accepts a logEvent
parameter to control whether or not logger prints event. But when I try to do this I get an error. See screenshot.
Current Behaviour
Cannot pass logEvent
into constructor of Logger
.
Code snippet
const logger = new Logger({
logEvent: true, // ERROR: Object literal may only specify known properties, and 'logEvent' does not exist in 'ConstructorOptions'
});
Steps to Reproduce
- Reproduce code in code snippet above.
- See error.
Possible Solution
No response
Powertools for AWS Lambda (TypeScript) version
latest
AWS Lambda function runtime
18.x
Packaging format used
npm
Execution logs
No response
Metadata
Metadata
Assignees
Labels
completedThis item is complete and has been merged/shippedThis item is complete and has been merged/shippeddocumentationImprovements or additions to documentationImprovements or additions to documentationloggerThis item relates to the Logger UtilityThis item relates to the Logger Utility
Type
Projects
Status
Shipped