enum LogFormat
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Lambda.LogFormat |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awslambda#LogFormat |
Java | software.amazon.awscdk.services.lambda.LogFormat |
Python | aws_cdk.aws_lambda.LogFormat |
TypeScript (source) | aws-cdk-lib » aws_lambda » LogFormat |
This field takes in 2 values either Text or JSON.
By setting this value to Text, will result in the current structure of logs format, whereas, by setting this value to JSON, Lambda will print the logs as Structured JSON Logs, with the corresponding timestamp and log level of each event. Selecting ‘JSON’ format will only allow customers to have different log level Application log level and the System log level.
Members
Name | Description |
---|---|
TEXT | Lambda Logs text format. |
JSON | Lambda structured logging in Json format. |
TEXT
Lambda Logs text format.
JSON
Lambda structured logging in Json format.