# 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.

- Source: [`aws-lambda/lib/function.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-lambda/lib/function.ts#L132)
- Type last changed: v2.110.0 · 17 Nov 2023

## Members

| Member | Description |
| --- | --- |
| `TEXT` | Lambda Logs text format. |
| `JSON` | Lambda structured logging in Json format. |
