generated from amazon-archives/__template_MIT-0
-
Notifications
You must be signed in to change notification settings - Fork 454
Closed as not planned
Closed as not planned
Copy link
Labels
Description
Use case
The built in logging formatter provides very good defaults, however is there a potential work around to avoid stripping logging context whose value is None
? This method call appears to remove any key value pairs on the log context whose value is None
:
formatted_log = self._strip_none_records(records=formatted_log) |
This would allow log messages to show context that is set to None
which would be valuable in certain circumstances.
Solution/User Experience
Allow the passing in of a keyword argument that allows None
type values to be logged, as well as an environment variable that configures this behavior.
Alternative solutions
No response
Acknowledgment
- This feature request meets Powertools for AWS Lambda (Python) Tenets
- Should this be considered in other Powertools for AWS Lambda languages? i.e. Java, TypeScript, and .NET
heitorlessa
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Closed