aws / aws-lambda-python-runtime-interface-client

Apache License 2.0
258 stars 73 forks source link

Emit logs in JSON format #101

Closed kotyara1005 closed 1 year ago

kotyara1005 commented 1 year ago

Description: This PR adds structured logging support for lambda functions. Log format and level now encoded into message header. User are able to set format and level through the environment variables AWS_LAMBDA_LOG_FORMAT and AWS_LAMBDA_LOG_LEVEL.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

kotyara1005 commented 1 year ago

ping @luben

thenewguy39 commented 1 year ago

Please set flag from Text to JSON in frame header.

luben commented 1 year ago

LGTM

alex-pewpew commented 1 year ago

LGTM