From the course: Android Studio Essential Training 2020

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Filter and search LogCat messages

Filter and search LogCat messages

From the course: Android Studio Essential Training 2020

Start my 1-month free trial

Filter and search LogCat messages

- [Narrator] Android's Logcat tool allows you to trace events, and see values of variables when the app is running. Logcat messages are displayed in Android Studio in the Logcat window. You can get to the window by clicking on the tab, which by default will be at the bottom of the screen, or you can go through the menu and choose View, Tool Windows, Logcat, or press the associate keyboard shortcut. To display something in the Logcat window, add a call to the log class. As I showed previously you can use a live template to create one of these calls, and by default these templates put in a tag with a constant of TAG, uppercase. That won't exist automatically in your code, you have to create it yourself. For this first demonstration I just want to know when the onCreate function is being called. So I'll get rid of that colon and space and then I'll run the application. Now, the logcat tool receives a constant stream…

Contents