Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

chore: update log settings #252

Merged
merged 4 commits into from
Mar 17, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions serverless.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ provider:
stage: dev
runtime: nodejs12.x
memorySize: 512
logRetentionInDays: 1827 # 5 years
logRetentionInDays: 3653 # 10 years
stackTags:
FHIR_SERVICE: 'fhir-service-${self:custom.region}-${self:custom.stage}'
environment:
Expand All @@ -58,8 +58,8 @@ provider:
variableSyntax: "\\${((?!AWS)[ ~:a-zA-Z0-9._@'\",\\-\\/\\(\\)]+?)}" # Use this for allowing CloudFormation Pseudo-Parameters in your serverless.yml
logs:
restApi:
executionLogging: true
fullExecutionData: true
format: '{"authorizer.claims.sub":"$context.authorizer.claims.sub","error.message":"$context.error.message","extendedRequestId":"$context.extendedRequestId","httpMethod":"$context.httpMethod","identity.sourceIp":"$context.identity.sourceIp","integration.error":"$context.integration.error","integration.integrationStatus":"$context.integration.integrationStatus","integration.latency":"$context.integration.latency","integration.requestId":"$context.integration.requestId","integration.status":"$context.integration.status","path":"$context.path","requestId":"$context.requestId","responseLatency":"$context.responseLatency","responseLength":"$context.responseLength","stage":"$context.stage","status":"$context.status"}'
executionLogging: false
tracing:
apiGateway: true
lambda: true
Expand Down