1. Try to setup ADB (Android Debugging Bridge) to use command “adb” in command line.
Please read this post
2. Open console (cmd) then start to using logcat with command “adb“.
[adb] logcat [<option>] ... [<filter-spec>] ...
c:\> adb logcat *:I
c:\> adb logcat *:D
c:\> adb logcat *:E
c:\> adb logcat -d
If you want to write the log into a file, you can try the following command:
c:\>adb shell logcat -f /mnt/sdcard/logcat.txt
This command will write the log into a file (logcat.txt) then save the file into your sdcard in your device.
When you use the option “-f”, you should write log into a writable area. if not, an error found like “couldn’t open output file: Read-only file system”
Or simple way to save your log into your PC:
c:\> adb logcat >logfile.txt
c:\> adb logcat -d >logfile.txt
Refer to the following link to know more:
Happy logcatting 🙂