# LoggingConfiguration

Logging configuration for incoming requests.

- Source: [`aws-cloudfront/lib/web-distribution.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-cloudfront/lib/web-distribution.ts#L110)

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudfront as cloudfront } from 'aws-cdk-lib';
import { aws_s3 as s3 } from 'aws-cdk-lib';

declare const bucket: s3.Bucket;
const loggingConfiguration: cloudfront.LoggingConfiguration = {
  bucket: bucket,
  includeCookies: false,
  prefix: 'prefix',
};
```

## Properties

- `bucket`: [IBucket](/cdk/api/v2/docs/aws-cdk-lib.aws_s3.IBucket.html) — Bucket to log requests to.

  **Default:** A logging bucket is automatically created.

- `includeCookies`: boolean = false — Whether to include the cookies in the logs.

- `prefix`: string — Where in the bucket to store logs.

  **Default:** No prefix.
