Log Messages to Logcat

Logcat is a command-line tool that comes with the Android SDK and takes in system messages, both from the device and apps running on the device. You can use Logcat to see what’s going on in your app without disrupting the UI or having to debug. As Logcat is a command-line tool, a bunch of options are available, which you can find at https://link.mfazio.dev/logcat.

For now, we’re going to focus on using Logcat within Android Studio. The Logcat window can be found on the bottom of Android Studio, near the Run window button:

images/pd.troubleshooting/logcat-window.png

In here, we get information about all kinds of things about our device, no matter if it’s a real device ...

Get Kotlin and Android Development featuring Jetpack now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.