Reputation: 33741
I'd like to filter out everything from the log, except for my app's processes. I know that I can specify priority levels, but I want to be able to do more than that. I wanna get rid of all the other stuff that's going on in the phone that's being logged. How can I do this?
Upvotes: 9
Views: 9750
Reputation: 34823
Yes now you will get it automatically....
Update to ADT plugin version 14, where the logcat will automatic session filter
where it filter log in you specific app (package)
Upvotes: 1
Reputation: 11
Filtering logcat via command line can be done by setting a text string to silent, like WifiStatetracker:S
. This will get rid of anything with WifiStateTracker in it. You can use multiple arguments, like WifiStatetracker:S dhcpcd:S BatteryService:S
. I don't know how the matching scheme works, though.
Upvotes: 0
Reputation: 60681
If you're viewing the logs in the Eclipse debug view, you can do this very easily by just clicking the Create Filter button (green + sign).
If not using Eclipse, specify the filter on the command line as follows (example from the Android docs):
Here's an example of a filter expression that suppresses all log messages except those with the tag "ActivityManager", at priority "Info" or above, and all log messages with tag "MyApp", with priority "Debug" or above:
adb logcat ActivityManager:I MyApp:D *:S
Upvotes: 10