In this post, I will let you know that how to collect
android log using ADB on Windows.
To collecting log using ADB are always useful : Why ?
1.You don't need to use third party tool
2.Even If you don't have IDE installed then also your work
done because of the ADB
3. Sometimes Android log gets overwritten.so its always
better to use ADB
I mostly recommended to collect log using ADB specially when
unexpected crashes occur.
Prerequisite:
1. Download and install the Android SDK for
windows
2. Launch the Android SDK Manager, and choose
to install Android SDK Platform-tools
3. Install USB Drivers
4. On the Android device, enable USB debugging
5.Connect the Android device to a Windows computer via the USB cable
Steps:
1.Go to the directory where the ADB executable is located.
2.Shift+Right Click and select "open command window here"
3. Run the following commands: “adb logcat -c" ---> this use for clearing logs.
4. Reproduce the issue.
5. Then, run the following command to capture the logs in a
file:
“adb logcat -d > Name_of_theFile.txt"
No comments:
Post a Comment