Module: AWSCDK::Lambda::LogFormat

Defined in:
lambda/log_format.rb

Overview

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.

Constant Summary collapse

TEXT =
Deprecated.
Note:

Default:

Lambda Logs text format.

Jsii::Enum.new("aws-cdk-lib.aws_lambda.LogFormat", "TEXT")
JSON =
Deprecated.
Note:

Default:

Lambda structured logging in Json format.

Jsii::Enum.new("aws-cdk-lib.aws_lambda.LogFormat", "JSON")