-
Notifications
You must be signed in to change notification settings - Fork 161
Closed
Labels
bugSomething isn't workingSomething isn't workingcompletedThis item is complete and has been merged/shippedThis item is complete and has been merged/shippedloggerThis item relates to the Logger UtilityThis item relates to the Logger Utility
Milestone
Description
Bug description
Right now when printing log items, the log level (DEBUG, INFO, WARN, ERROR) is correctly state in the structured log JSON, but in cloudwatch they are processed all as INFO logs.
Expected Behavior
Each log item in CloudWatch is processed using the correct logging level.
Current Behavior
All log items have an INFO log level in CW.
Possible Solution
Use the proper console method (console.debug, console.info, console.warn, console.error).
Steps to Reproduce
N/A
Environment
- Powertools version used: main branch
- Packaging format (Layers, npm): NPM
- AWS Lambda function runtime: all
- Debugging logs: N/A
Related issues, RFCs
N/A
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingcompletedThis item is complete and has been merged/shippedThis item is complete and has been merged/shippedloggerThis item relates to the Logger UtilityThis item relates to the Logger Utility