---
title: "Enable and disable logging"
section: "frontend/logging"
platforms: ["android", "swift"]
gen: 2
last-updated: "2026-03-25T17:40:00.000Z"
url: "https://docs.amplify.aws/react/frontend/logging/enable-disable/"
---

In this section, you will learn how to enable and disable logging when using the Amplify Logger. It is enabled by default, unless it is disabled in the `amplifyconfiguration_logging` file.

<!-- Platform: android -->

#### [Java]

Enable the Amplify Logger.

```java
Amplify.Logging.enable();
```

Disable the Amplify Logger.

```java
Amplify.Logging.disable();
```

#### [Kotlin]

Enable the Amplify Logger.

```kotlin
Amplify.Logging.enable()
```

Disable the Amplify Logger.

```kotlin
Amplify.Logging.disable()
```

#### [RxJava]

Enable the Amplify Logger.

```java
Amplify.Logging.enable();
```

Disable the Amplify Logger.

```java
Amplify.Logging.disable();
```

<!-- /Platform -->

<!-- Platform: swift -->
Enable the Amplify Logger.

```swift
Amplify.Logging.enable()
```

Disable the Amplify Logger.

```swift
Amplify.Logging.disable()
```
<!-- /Platform -->
