mirror of
https://github.com/swift-server/swift-aws-lambda-runtime.git
synced 2026-05-03 07:22:27 +00:00
553b5e3716
This PR adds support for Structured Logging, as per [the design document](https://github.com/awslabs/swift-aws-lambda-runtime/blob/feature/structured-json-logging/Sources/AWSLambdaRuntime/Docs.docc/Proposals/0002-logging.md) --------- Co-authored-by: Sebastien Stormacq <stormacq@amazon.lu>
25 lines
648 B
YAML
25 lines
648 B
YAML
AWSTemplateFormatVersion: '2010-09-09'
|
|
Transform: AWS::Serverless-2016-10-31
|
|
Description: JSON Logging Example
|
|
|
|
Resources:
|
|
JSONLoggingFunction:
|
|
Type: AWS::Serverless::Function
|
|
Properties:
|
|
CodeUri: .build/plugins/AWSLambdaPackager/outputs/AWSLambdaPackager/JSONLogging/JSONLogging.zip
|
|
Timeout: 60
|
|
Handler: swift.bootstrap
|
|
Runtime: provided.al2023
|
|
MemorySize: 128
|
|
Architectures:
|
|
- arm64
|
|
LoggingConfig:
|
|
LogFormat: JSON
|
|
ApplicationLogLevel: DEBUG
|
|
SystemLogLevel: INFO
|
|
|
|
Outputs:
|
|
FunctionName:
|
|
Description: Lambda Function Name
|
|
Value: !Ref JSONLoggingFunction
|