Getting a Logcat
Table of contents
- What's a logcat
- Retrieve logcat from your phone
- Retrieve logcat using adb
In layman's terms, it is just a log that contains many outputs from the Android system. Logcats are extremely helpful for developers to analyse the problem that appears from their creations.
To retrieve a logcat, there are two methods, one from your device itself and another is through the adb on your computer.
You can get a logcat from your phone. In this section, we will be demonstrating on how to retrieve a log from the all famous CatLog app. You may use any other log-fetching app of your choice, but, the steps below won't be compatible with the other apps.
You can also retrieve a logcat through an adb on your computer. In this section, we assume that you have adb already installed on your computer. If you haven't, you might want to check out this guide as well.
adb devices. You should see a device listed here.
adb logcat > log.txt. The terminal window wont give you a new line to type on. The adb logcat is currently running and is outputting content into a text file named "log.txt".