{"id":264,"date":"2015-04-28T10:01:12","date_gmt":"2015-04-28T09:01:12","guid":{"rendered":"https:\/\/mokrzycki.eu\/blog\/?p=264"},"modified":"2018-12-04T15:43:46","modified_gmt":"2018-12-04T14:43:46","slug":"ignoring-some-logs-in-logcat-filter-android-studio-solution","status":"publish","type":"post","link":"https:\/\/mokrzycki.eu\/blog\/2015\/04\/28\/ignoring-some-logs-in-logcat-filter-android-studio-solution\/","title":{"rendered":"Ignoring some logs in Logcat filter &#8211; Android Studio &#8211; solution"},"content":{"rendered":"<p>Here is a little help to remove from our logcat some logs we don&#8217;t want like: dalvikvm or OpenGL<br \/>\nAll what you need is to click in top right corner of logcat, select our package name and click <strong>Edit Filter Configuration<\/strong><\/p>\n<p><a href=\"https:\/\/mokrzycki.eu\/blog\/wp-content\/uploads\/2015\/04\/2015-04-28_11h04_27.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-269\" src=\"https:\/\/mokrzycki.eu\/blog\/wp-content\/uploads\/2015\/04\/2015-04-28_11h04_27-300x168.png\" alt=\"2015-04-28_11h04_27\" width=\"300\" height=\"168\" srcset=\"https:\/\/mokrzycki.eu\/blog\/wp-content\/uploads\/2015\/04\/2015-04-28_11h04_27-300x168.png 300w, https:\/\/mokrzycki.eu\/blog\/wp-content\/uploads\/2015\/04\/2015-04-28_11h04_27-656x367.png 656w, https:\/\/mokrzycki.eu\/blog\/wp-content\/uploads\/2015\/04\/2015-04-28_11h04_27.png 699w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Then in the field called Log Tag regex You need insert this<br \/>\n[java]^((?!(?:dalvikvm|OpenGLRenderer)).)*$[\/java] which means you don&#8217;t want any log which contains dalvivm or OpenGLRenderer. If You want add another word to ignore list just insert inside of regex<\/p>\n<pre>|word<\/pre>\n<p>For example:<br \/>\n[java]^((?!(?:dalvikvm|OpenGLRenderer|Word)).)*$[\/java]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here is a little help to remove from our logcat some logs we don&#8217;t want&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[500],"tags":[5,97,183,182,18,181],"_links":{"self":[{"href":"https:\/\/mokrzycki.eu\/blog\/wp-json\/wp\/v2\/posts\/264"}],"collection":[{"href":"https:\/\/mokrzycki.eu\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mokrzycki.eu\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mokrzycki.eu\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mokrzycki.eu\/blog\/wp-json\/wp\/v2\/comments?post=264"}],"version-history":[{"count":6,"href":"https:\/\/mokrzycki.eu\/blog\/wp-json\/wp\/v2\/posts\/264\/revisions"}],"predecessor-version":[{"id":726,"href":"https:\/\/mokrzycki.eu\/blog\/wp-json\/wp\/v2\/posts\/264\/revisions\/726"}],"wp:attachment":[{"href":"https:\/\/mokrzycki.eu\/blog\/wp-json\/wp\/v2\/media?parent=264"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mokrzycki.eu\/blog\/wp-json\/wp\/v2\/categories?post=264"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mokrzycki.eu\/blog\/wp-json\/wp\/v2\/tags?post=264"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}