> **Experimental**
>
> `@aws-cdk/aws-iot-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# LogLevel

The log level for the AWS IoT Logging.

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/logging.ts`](https://github.com/aws/aws-cdk/blob/v2.277.0/packages/@aws-cdk/aws-iot-alpha/lib/logging.ts#L23)

## Example

TypeScript:

```ts
new iot.Logging(this, 'Logging', {
  logLevel: iot.LogLevel.INFO,
});
```

Python:

```python
iot.Logging(self, "Logging",
    log_level=iot.LogLevel.INFO
)
```

Java:

```java
Logging.Builder.create(this, "Logging")
        .logLevel(LogLevel.INFO)
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.AWS.IoT.Alpha
new Logging(this, "Logging", new LoggingProps {
    LogLevel = LogLevel.INFO
});
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdkiotalpha/v2
iot.NewLogging(this, jsii.String("Logging"), &LoggingProps{
	LogLevel: iot.LogLevel_INFO,
})
```

## Members

| Member | Description |
| --- | --- |
| `ERROR` | Any error that causes an operation to fail. |
| `WARN` | Anything that can potentially cause inconsistencies in the system, but might not cause the operation to fail. |
| `INFO` | High-level information about the flow of things. |
| `DEBUG` | Information that might be helpful when debugging a problem. |
| `DISABLED` | All logging is disabled. |

## Referenced by

- [`LoggingProps`](/v2/docs/@aws-cdk_aws-iot-alpha.LoggingProps).logLevel
