Created
February 22, 2025 19:46
-
-
Save jftuga/cab2d01b7ca6d8ced9dcdc890ae074a2 to your computer and use it in GitHub Desktop.
Python Logging
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
# python logging for AWS Lambda function | |
import logging | |
# boto3 internally uses DEBUG and INFO; therefore start with WARNING level | |
logging.basicConfig(level=logging.WARNING) | |
def lambda_handler(event, context): | |
logging.warning(f"{event=}") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment