Skip to content

Add option to set default POWERTOOLS_LOG_LEVEL #44

Description

@Tohaker

We already set the POWERTOOLS_SERVICE_NAME based on the functionName, however we should also allow a global POWERTOOLS_LOG_LEVEL level to be set for all functions.

It should:

  • Set the POWERTOOLS_LOG_LEVEL environment variable to INFO by default.
  • If the environment variable is set for a particular Function, let that override the set value or default.
  • The blueprint props should be typed to only allow one of the following (based on documentation): DEBUG, INFO, WARN, ERROR, CRITICAL, SILENT.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions