# FireLensLogDriver

FireLens enables you to use task definition parameters to route logs to an AWS service  or AWS Partner Network (APN) destination for log storage and analytics.

Extends: LogDriver › FireLensLogDriver

- Source: [`aws-ecs/lib/log-drivers/firelens-log-driver.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-ecs/lib/log-drivers/firelens-log-driver.ts#L29)

## 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';

declare const secret: ecs.Secret;
const fireLensLogDriver = new ecs.FireLensLogDriver({
  env: ['env'],
  envRegex: 'envRegex',
  labels: ['labels'],
  options: {
    optionsKey: 'options',
  },
  secretOptions: {
    secretOptionsKey: secret,
  },
  tag: 'tag',
});
```

## Initializer

```ts
new FireLensLogDriver(props: FireLensLogDriverProps)
```

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