Skip to content

Instantly share code, notes, and snippets.

@keithrozario
Last active May 30, 2020 01:41
Show Gist options
  • Save keithrozario/e393105910ee8791d78ae81b61d17da5 to your computer and use it in GitHub Desktop.
Save keithrozario/e393105910ee8791d78ae81b61d17da5 to your computer and use it in GitHub Desktop.
Logging with Powertools
from aws_lambda_powertools.logging import Logger
logger = Logger()
@logger.inject_lambda_context
def handler(event, context):
important_list = [1,2,3]
logger.info({
"m": "Logging is awesome",
"count": 3,
"important_list": important_list,
})
return None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment