# GelfLogDriver

A log driver that sends log information to journald Logs.

Extends: LogDriver › GelfLogDriver

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

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
import { aws_ecs as ecs } from 'aws-cdk-lib';
const gelfLogDriver = new ecs.GelfLogDriver({
  address: 'address',

  // the properties below are optional
  compressionLevel: 123,
  compressionType: ecs.GelfCompressionType.GZIP,
  env: ['env'],
  envRegex: 'envRegex',
  labels: ['labels'],
  tag: 'tag',
  tcpMaxReconnect: 123,
  tcpReconnectDelay: cdk.Duration.minutes(30),
});
```

## Initializer

```ts
new GelfLogDriver(props: GelfLogDriverProps)
```

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