Save Logcat contents to file

19 Jul 2012

Note to self: to save the contents of Logcat to a text file:
  1. Navigate to the SDK installation directory.
  2. Go to the /platform-tools folder.
  3. adb logcat -d > my_logcat_dump.txt
If there is more than one device connected to adb, specify which device's log to dump:
adb -s emulator-5558 logcat -d > my_logcat_dump.txt