Extract Logcat Logs from Android

Skip to main content

Extract Logcat Logs from Android

You are here:

There are two methods for extracting logcat logs from Android:

  • Command Line
  • GUI

Command Line

  1. Download SDK Platform-Tools.
  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.

GUI

  1. Download Android 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  button (Export Logs to a File).
  9. Save file to location of choice.

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).
  3. Enable USB debugging in the new Developer Options screen.
Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
5
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.
Need help?

Leave A Comment

Table of Contents
Go to Top