# BaseLogDriverProps

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

## 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 baseLogDriverProps: ecs.BaseLogDriverProps = {
  env: ['env'],
  envRegex: 'envRegex',
  labels: ['labels'],
  tag: 'tag',
};
```

## Properties

- `env`: string[] = No env — The env option takes an array of keys.

  If there is collision between
  label and env keys, the value of the env takes precedence. Adds additional fields
  to the extra attributes of a logging message.

- `envRegex`: string = No envRegex — The env-regex option is similar to and compatible with env.

  Its value is a regular
  expression to match logging-related environment variables. It is used for advanced
  log tag options.

- `labels`: string[] = No labels — The labels option takes an array of keys.

  If there is collision
  between label and env keys, the value of the env takes precedence. Adds additional
  fields to the extra attributes of a logging message.

- `tag`: string = The first 12 characters of the container ID — By default, Docker uses the first 12 characters of the container ID to tag log messages.

  Refer to the log tag option documentation for customizing the
  log tag format.

  **Default:** The first 12 characters of the container ID
