Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to filter logcat in Android Studio?

In my logcat there is too much output, so I'd like to filter it using some keywords, basically displaying only the output containing the keyword(s). Is there a way to do that in Android Studio through the UI?

like image 362
Alessandro Roaro Avatar asked Nov 12 '13 14:11

Alessandro Roaro


1 Answers

There are two ways to do this, both are in the Android tab at the bottom of the IDE (where the logcat output is displayed).

First, you can simply type something into the search box at the top and it should filter only messages containing the text you type.

Second, you can do advanced filtering by clicking on the dropdown at the top right, which should be displaying No Filters by default, and choose Edit Filter Configuration and specifying what to filter on. Using this method you also save the filters and can re-use them by selecting them in the dropdown.

Screenshot:
Search & Filter Logcat

like image 65
free3dom Avatar answered Oct 19 '22 03:10

free3dom