![]() ![]() ![]() If you are using adb logcat you could pipe it through grep and use it's inverted matching: ![]() Note that there are no spaces, this is important If you want to exclude or filter certain messages by tag name in Android studio, goto the LogCat window=>Edit Filter configuration, and enter the following under "by Log Tag(regex): " ^(?!(tag1|tag2|tag3|tag4)) )) in the Log Tag box, with the Regex checkbox checked. Create a new logcat filter and put ^(?!(WifiMulticast. In Android Studio's logcat monitor pane, you can set up a saved filter for this by opening the dropdown in the upper right (it may have "Show only selected application" selected) and selecting Edit Filter Configuration. If you use this trick in a saved filter then put just the regular expression in the "Tag" input box, and omit the "tag:" prefix) (The "tag:" isn't part of the regular expression, but tells LogCat to only apply the regex to the Tag field. You can do this from within DDMS Monitor (and also Eclipse or Android Studio) with the regular expression input box and negative look-ahead assertions, for example I am excluding a lot of noise from my log with the following: tag:^(?!(WifiMulticast|WifiHW|MtpService|PushClient)) ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |