{"id":758,"date":"2021-09-17T08:24:59","date_gmt":"2021-09-17T08:24:59","guid":{"rendered":"https:\/\/mklasen.com\/?p=758"},"modified":"2021-09-17T08:24:59","modified_gmt":"2021-09-17T08:24:59","slug":"hiding-unwanted-javascript-console-warnings-and-notices-like-jqmigrate-and-migratewarn","status":"publish","type":"post","link":"https:\/\/mklasen.com\/hiding-unwanted-javascript-console-warnings-and-notices-like-jqmigrate-and-migratewarn\/","title":{"rendered":"Hiding unwanted javascript console warnings and notices like JQMIGRATE and migrateWarn"},"content":{"rendered":"\n
Honestly – sometimes I just want to see clean console output, but with frameworks and platforms like WordPress you can’t always control all libraries used and how they use the Web developer console.<\/p>\n\n\n\n
Most of the times, these console warnings are not essential for the work that i’m doing but I do want to see the relevant console output for my debugging purposes.<\/p>\n\n\n\n
There’s a very easy solution. Use the filter in your console with in this case \"-JQMIGRATE -migrateWarn -DevTools<\/code>” to filter messages, as seen in the screenshot below.<\/p>\n\n\n\n