Android Getting Started edit

Filtering the logcat output

It is helpful to filter the logcat output because there are many messages which are not of interest. To filter the output, open the “Android Monitor” and click on the drop down on the top-right and select Edit Filter Configuration

 

Now you can add custom filters to show messages which are of interest, as well as filter out well-known log lines which can safely be ignored. To ignore a part of the output you may define a Regular Expression. Here is an example of excluding matching tags:

^(?!(HideMe|AndThis))

This can be entered by following this example:

 

The above is a regular expression which excludes inputs. If you wanted to add another tag to the blacklist, add it after a pipe | character. For example, if you wanted to blacklist “GC”, you would use a filter like this:

^(?!(HideMe|AndThis|GC))

For more documentation and examples visit Logging and using Logcat


Table Of Contents
1 Getting Started
39 ACRA
64 Menu
112 Loader
119 Xposed
132 Colors
135 Fresco
140 AdMob
147 Button
156 Vk SDK
170 XMPP
176 OpenCV
200 FileIO
203 Moshi
217 Paint
231 AIDL
241 JCodec
243 Okio
255 Looper
  ↑ ↓ to navigate     ↵ to select     Esc to close