【入門編】AWS CloudFormationのテンプレートを書いてみる
from aws_lambda_powertools.logging.formatter import JSONFormatter class CustomJSONFormatter(JSONFormatter): def format(self, record): log_record = super().format(record) log_record.pop("level", None) # levelを除外 log_record.pop("location", No