Skip to content

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

Closed

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

Activity

  1. scottgerring commented on Sep 28, 2023

    @scottgerring
    Contributor

    Nice catch! Really doesn't seem to be referenced anywhere apart from example deployment code.

  2. changed the title [-]Maintenance: Remove POWERTOOLS_LOGGER_LOG_EVENT from the examples[/-] [+]Feat: Add support for POWERTOOLS_LOGGER_LOG_EVENT to the logging module[/+] on Oct 9, 2023
  3. added
    feature-parityFeature parity with python version
    and removed
    bugSomething isn't working
    on Oct 9, 2023
  4. jeromevdl commented on Nov 14, 2023

    @jeromevdl
    Contributor

    fixed, will be released after tomorrow

  5. github-actions commented on Nov 16, 2023

    @github-actions
    Contributor

    This is now released under 1.18.0 version!

  6. moved this from Backlog to Shipped in Powertools for AWS Lambda (Java)on Jul 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

feature-parityFeature parity with python version

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions