# JsonFileLogDriver

A log driver that sends log information to json-file Logs.

Extends: LogDriver › JsonFileLogDriver

- Source: [`aws-ecs/lib/log-drivers/json-file-log-driver.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-ecs/lib/log-drivers/json-file-log-driver.ts#L44)

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ecs as ecs } from 'aws-cdk-lib';
const jsonFileLogDriver = new ecs.JsonFileLogDriver(/* all optional props */ {
  compress: false,
  env: ['env'],
  envRegex: 'envRegex',
  labels: ['labels'],
  maxFile: 123,
  maxSize: 'maxSize',
  tag: 'tag',
});
```

## Initializer

```ts
new JsonFileLogDriver(props?: JsonFileLogDriverProps)
```

## Methods

- `awsLogs(props: AwsLogDriverProps): LogDriver` (static) — Creates a log driver configuration that sends log information to CloudWatch Logs.

- `bind(_scope: Construct, _containerDefinition: ContainerDefinition): LogDriverConfig` — Called when the log driver is configured on a container.
