# CloudWatchLoggingOptions

Information about logs built to a CloudWatch Log Group for a build project.

- Source: [`aws-codebuild/lib/project-logs.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-codebuild/lib/project-logs.ts#L38)

## Example

```ts
new codebuild.Project(this, 'Project', {
  logging: {
    cloudWatch: {
      logGroup: new logs.LogGroup(this, `MyLogGroup`),
    }
  },
})
```

## Properties

- `enabled`: boolean = true — The current status of the logs in Amazon CloudWatch Logs for a build project.

- `logGroup`: [ILogGroup](/cdk/api/v2/docs/aws-cdk-lib.aws_logs.ILogGroup.html) — The Log Group to send logs to.

  **Default:** no log group specified

- `prefix`: string — The prefix of the stream name of the Amazon CloudWatch Logs.

  **Default:** no prefix
