Skip to content
Devin Schulz
Menu
The archive

DevTools, Today I Learned

Filter Out Multiple Console Messages in Google Chrome

Learn how to filter out multiple console messages by using either regular expressions or prefixing a string with a hyphen-minus.

Archived writing, published in 2020. I’ve fixed some grammar since, but otherwise it’s as I wrote it, so some details may have aged.

Google Chrome gives you the ability to filter out messages within the console by prefixing a search term with the hyphen-minus (subtraction) character -. If you want to ignore multiple entries, add a space between the search terms.

-term -analytics

Using regular expressions to filter entries also works:

-/term/ -/analytics/

Or a combination of the two:

-term -/analytics/