---
title: "Extract Logcat Logs from Android"
app: "Warehouse Insight"
section: "Get started"
last_updated: "2025-12-10"
url: "https://insight-works.com/kb/warehouse-insight/extract-logcat-logs-from-android/"
---

# Extract Logcat Logs from Android

There are two methods for extracting logcat logs from Android:

- Command Line
- GUI

### Command Line

1. Download [SDK Platform-Tools](https://developer.android.com/tools/releases/platform-tools#downloads).
2. Enable Developer Options & USB Debugging on the Android device (scanner).
3. Reproduce Crash.
4. Plug in device to computer.
5. Run the command: **adb logcat -d > logcat.txt**

Produces a text file containing the log messages.

 Note: If that command fails, ensure the device is visible/accessible by running: **adb devices**

### GUI

1. Download [Android Studio](https://developer.android.com/studio) on a desktop computer.
2. Enable Developer Options & USB Debugging on the Android device (scanner).
3. Reproduce Crash.
4. Plug in device to computer.
5. Launch Android Studio.
6. Navigate to the _Logcat_ pane on the bottom left.
7. Note if the device is detected and:

   - If the device is detected, messages are already rolling as the device is operating.
   - If not, select the device from the drop-down menu.
8. Select the ![](/wp-content/uploads/kb-legacy/export-logs-to-a-file-button.png) button (Export Logs to a File).
9. Save file to location of choice.

 Note: For devices without a standard USB port, use a docking station plugged into the PC. If the device is Android 11 or higher, wireless debugging can be setup (see [_Connect to a device over Wi-Fi_](https://developer.android.com/tools/adb#connect-to-a-device-over-wi-fi)).

### Enable developer options and USB debugging on Android

1. Navigate to _About_ in Android Settings.
2. Locate _Build Number_and tap **7** times (see [_How to Enable Android Developer Settings: Unlock your Device’s Hidden Potential_](https://www.android.com/intl/en_uk/articles/enable-android-developer-settings/)).
3. Enable **USB debugging** in the new Developer Options screen.
