# NoneLogDriver

A log driver that sets the log driver to `none` (no logs collected).

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

- Source: [`aws-ecs/lib/log-drivers/none-log-driver.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-ecs/lib/log-drivers/none-log-driver.ts#L9)
- Type last changed: v2.235.0 · 15 Jan 2026

## 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 noneLogDriver = new ecs.NoneLogDriver();
```

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

none_log_driver = ecs.NoneLogDriver()
```

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.*;

NoneLogDriver noneLogDriver = new NoneLogDriver();
```

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 noneLogDriver = new NoneLogDriver();
```

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"

noneLogDriver := awscdk.Aws_ecs.NewNoneLogDriver()
```

## Initializer

TypeScript:

```ts
new NoneLogDriver()
```

Python:

```python
NoneLogDriver()
```

Java:

```java
new NoneLogDriver()
```

C# / .NET:

```csharp
new NoneLogDriver()
```

Golang:

```go
NewNoneLogDriver()
```

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