Android Logging and using Logcat suggest change

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

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents