# JournaldLogDriver

A log driver that sends log information to journald Logs.

Extends: [LogDriver](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ecs.LogDriver.html) › JournaldLogDriver

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

## Example

TypeScript:

```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 journaldLogDriver = new ecs.JournaldLogDriver(/* all optional props */ {
  env: ['env'],
  envRegex: 'envRegex',
  labels: ['labels'],
  tag: 'tag',
});
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ecs as ecs

journald_log_driver = ecs.JournaldLogDriver(
    env=["env"],
    env_regex="envRegex",
    labels=["labels"],
    tag="tag"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ecs.*;

JournaldLogDriver journaldLogDriver = JournaldLogDriver.Builder.create()
        .env(List.of("env"))
        .envRegex("envRegex")
        .labels(List.of("labels"))
        .tag("tag")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ECS;

var journaldLogDriver = new JournaldLogDriver(new JournaldLogDriverProps {
    Env = new [] { "env" },
    EnvRegex = "envRegex",
    Labels = new [] { "labels" },
    Tag = "tag"
});
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

journaldLogDriver := awscdk.Aws_ecs.NewJournaldLogDriver(&JournaldLogDriverProps{
	Env: []*string{
		jsii.String("env"),
	},
	EnvRegex: jsii.String("envRegex"),
	Labels: []*string{
		jsii.String("labels"),
	},
	Tag: jsii.String("tag"),
})
```

## Initializer

TypeScript:

```ts
new JournaldLogDriver(props?: JournaldLogDriverProps)
```

Python:

```python
JournaldLogDriver(props: typing.Optional[JournaldLogDriverProps] = None)
```

Java:

```java
new JournaldLogDriver(JournaldLogDriverProps props)
```

C# / .NET:

```csharp
new JournaldLogDriver(JournaldLogDriverProps? props = null)
```

Golang:

```go
NewJournaldLogDriver(Props JournaldLogDriverProps)
```

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