Skip to content

Feat: Add support for POWERTOOLS_LOGGER_LOG_EVENT to the logging module #1444

Closed
@AlexeySoshin

Description

@AlexeySoshin

Summary

POWERTOOLS_LOGGER_LOG_EVENT is a flag that exists in the examples, but is not supported by the library. The other libraries support it (e.g., python) so we should too. When we get a Lambda event, if this environment variable is set, we log the event itself. This can be done programatically at the moment.

Why is this needed?

This could confuse engineers that would expect the POWERTOOLS_LOGGER_LOG_EVENT to control the behaviour of the logger somehow.

Which area does this relate to?

Other

Solution

The POWERTOOLS_LOGGER_LOG_EVENT should be implemented.

Acknowledgment

Metadata

Metadata

Assignees

Labels

feature-parityFeature parity with python versionpriority:3Neutral - not a core feature or affects less than 40% of users

Type

No type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions