Open In App

How to Filter Logcat to Only Get Messages From the Running Application in Android?

In Android Studio Logcat is a window to display messages, Logcat shows real-time messages and keeps history for the future. To see the messages of users’ own interests users can filter Logcat cat. The default filter is set to log output related to recent ran apps only.

To view Logcat follow these steps View > Tool Windows > Logcat



To Filter Logcat We have the Following Steps:

Step 1: Select the Correct Device on which the Application is Running.

Step 2: To Choose the Package Name in the 2nd Dropdown Menu of Filter in Logcat shown below. so, that Logcat will show Logs from the Same Package.



 

Step 3: Then Choose the “Show only selected application” from the Last Drop-Down Menu as shown below. So, Logcat will not show Log Messages from Firebase or any other Miscellaneous Sources, only from the Selected Application.

 

Now the Logcat will Show Messages from the Application Only. 

Article Tags :