Filter Log by Script Source

Filter Log by Script Source

On any given website, your typical console might look like this:

Yuck! 🤮 We may not be able to control these messages if they're coming from a third-party vendor for instance. So what could we do to make things look at little neater?

DevTools provides a nifty way you can temporarily filter logs by script source. Check it!

Click the console side bar then click on one of the source scripts to see all logs originating only from that source.

Now your log is clean as a whistle!🧼

Links

Chrome Dev Tools Article on Log Messages


Check out more #JSBits at my blog, jsbits-yo.com. Or follow me on Twitter!

Â