Skip to content

Instantly share code, notes, and snippets.

@zulhfreelancer
Last active August 21, 2023 10:12
Show Gist options
  • Save zulhfreelancer/0c3b641d4864f770e4a8 to your computer and use it in GitHub Desktop.
Save zulhfreelancer/0c3b641d4864f770e4a8 to your computer and use it in GitHub Desktop.
Chrome console: How to filter exclude certain logs?

Use this:

^((?![INSERT YOUR WORD THAT YOU WANT TO EXCLUDE HERE]).)*$

Don't forget to check the Regex checkbox!

Example:

I'm excluding logs that contains Pusher words here. So, this is what I put inside the filter box: ^((?!pusher).)*$

@700software
Copy link

I don't see the Regex checkbox in Chrome. Perhaps it's been removed?

@fengerzh
Copy link

I don't see the Regex checkbox in Chrome. Perhaps it's been removed?

You can put a - before keyword to exclude it.

@Wxh16144
Copy link

I don't see the Regex checkbox in Chrome. Perhaps it's been removed?

You can put a - before keyword to exclude it.

I have the same problem, but I have absolutely no idea how to do it. Can you take a screenshot to guide me?

Chrome: 115.0.5790.98

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment