JS Bits with Bill
JS Bits with Bill

Follow

JS Bits with Bill

Follow
Filter Log by Script Source

Filter Log by Script Source

JS Bits with Bill's photo
JS Bits with Bill
·Jul 20, 2020·

1 min read

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!

 
Share this