LogFormatο
- class aws_cdk.aws_lambda.LogFormat(*values)ο
Bases:
EnumThis 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.
Attributes
- JSONο
Lambda structured logging in Json format.
- TEXTο
Lambda Logs text format.