5

I have a list of 4 console log messages that appear every 2 seconds in my Dev Tools console. I'd like to filter them out but using the filtering DSL that I use for the Network tab doesn't seem to work

My messages are:

[service]: failed to connect to service

OPTIONS http://127.0.0.1:8888/service net::ERR_CONNECTION_REFUSED

What type of filter should I use to make them disappear??? I tried using rexeg, something like [^service] but it didn't seem to work...

Community
  • 1
  • 1
PentaKon
  • 4,139
  • 5
  • 43
  • 80

2 Answers2

7

With the latest version of Chrome (^62) it finally seems to work.

I can use -[service] and it properly filters out the messages.

PentaKon
  • 4,139
  • 5
  • 43
  • 80
3

I believe you can just right click on them in the Console and filter them there like so:

enter image description here

dericcain
  • 2,182
  • 7
  • 30
  • 52
  • 2
    Interesting solution but in the age of single js files this will also filter out everything. – PentaKon Sep 25 '17 at 11:05
  • @Konstantine Hmmm... That's interesting because usually for me, it only filters out those particular messages so they don't clutter up my console. I am assuming that is what you are attempting to do? – dericcain Sep 25 '17 at 11:09
  • Yes but I have an all-in-one `app.js` file so I can't possible filter out every log that it produces – PentaKon Sep 25 '17 at 11:31
  • @Konstantine Yeah, that makes sense. – dericcain Sep 25 '17 at 11:32
  • 1
    +1 is there a way to filter out only one message yet? There's a new chrome version every week at the moment so maybe I missed it – James Klein Oct 20 '17 at 19:33