Skip to content

Instantly share code, notes, and snippets.

View alisson276's full-sized avatar

Alisson Ramos de Oliveira alisson276

  • Euronext Corporate Services
  • Portugal
  • 04:27 (UTC)
  • X @alisson_aro
View GitHub Profile
@gene1wood
gene1wood / log_aws_lambda_event_and_context.py
Last active June 27, 2023 04:33
A python AWS Lambda function which logs the contents of the event and context variables passed into the function.
from __future__ import unicode_literals
import logging
import json
logger = logging.getLogger(__name__)
logging.getLogger().setLevel(logging.INFO)
class PythonObjectEncoder(json.JSONEncoder):
"""Custom JSON Encoder that allows encoding of un-serializable objects