O'Reilly logo

Mobile DevOps by Jhalak Modi, Rohin Tak

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Accessing logcat from the command line

Another option to view the debug log is via the command line:

  1. Open a console window and navigate to the Android SDK platform-tools folder (such as C:\Program Files (x86)\Android\android-sdk\platform-tools).
  1. If only one device is attached, the log can be viewed with the following command:
$ adb logcat   
  1. If more than one device is attached, then the device must be identified. For example, adb -d logcat shows the log of the only physical device connected, while adb -e logcat shows the log of the only emulator running.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required