LogFormat
- class aws_cdk.aws_lambda.LogFormat(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
Enum
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 customer’s 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.