Last active
May 30, 2020 01:41
-
-
Save keithrozario/e393105910ee8791d78ae81b61d17da5 to your computer and use it in GitHub Desktop.
Logging with Powertools
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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