skip to Main Content

I am using Android studio giraffe version, and when I clicked on clear logcat, then this message is appearing "All logs entries are hidden by the filter". How can I get rid of this message and use filter as I want to use it. Error is shown in screenshot, thanks

logcat message as I type in filter

I override the activity life cycle methods and I wanted to observe its behavior. I was printing messages in print() method, and it was working fine, but when I clicked on clear logs, then I am getting this message "All logs entries are hidden by the filter". Please guide me in this regard.

2

Answers


  1. try to remove System.out query from search field.. leave it empty. also you may use "Restart Logcat" button, visible on your screen on left side, green rounded arrow

    Login or Signup to reply.
  2. First of all in Android we use the android.util.Log class for log statements. More on this topic in this post: Why shouldn’t I use System.out.println() in android.

    Back to your observed behavior.
    As you already did, you can filter the received logs. A common one is package:mine or/and tag:<your tag you wrote in the android.util.Log statement>. With the filtering you have basically two sets of logs: the filtered one (the one you see) and the unfiltered.
    If you decide to clear the Logcat (with the filter still in place), you just clear the filtered logs. The filtered out logs (the one you don’t see) are not cleared. That’s what the message All log entries are hidden by the filter is telling you.

    To resolve this "issue" you can either

    • clear the logcat again
    • clear the filter
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search