Extracting Device Logs
Android device logs (or logcat) can be collected via Android Debug Bridge (ADB).
1 - Installation
The official tool is installed alongside Android Studio but the size of the installer is 1.6GB. Personally, I use a tool created by the community which is only 9MB and only installs what is needed, as opposed to the whole SDK. If you are interested
in using the same tool, then we suggest to install it from here.
If you want to use the official Android Studio instead, then please proceed to this link.
2 - Preparing the device
- Navigate to Settings -> About -> Software Info (may vary according to device model)
- Tab 7 times on "Build Number" to activate the hidden "Developer Options" menu
- Back on the main settings, you should now see a menu called "Developer Options"
- Inside this menu, please activate the option "USB Debugging"
3 - Preparing the connection
- Plug your Android device via USB to your Windows machine
- Open the command line and navigate to: C:\adb
- Type the following command: adb devices
- Your device should now prompt you to trust this computer
4 - Extracting the logs to your Computer
- Open your command line and make sure that you are on the folder C:\adb
- Enter the following to clear your buffer: adb logcat -c
- Enter the following to start extracting logs: adb logcat -v time > logcat.txt
- Replicate the issue
- Once replicated, use the keyboard combination "Ctrl+c" to close the extraction
- You should now find the file with your logs at c:\adb\logcat.txt