Can we turn off "chatty" in logcat?
I also can't find documentation, but according to Issue 202457 - android - Disable chatty filtering of log messages (I/chatty ... expire N lines) - Android Open Source Project - Issue Tracker the command you want is
adb logcat -P ""
Related videos on Youtube
TheUmpteenth
Updated on June 04, 2022Comments
-
TheUmpteenth almost 2 years
So I'm trying to find an elusive bug in a large codebase. As such, I've put a lot of logging into my app. I'm lucky enough to have multiple testers working on this. However, I've found that a lot of my logcat logs are missing. They're hidden as 'chatty'. For example
1799 12017 I logd: uid=10007 chatty comm=Binder_B, expire 4 lines
I've found some mention of using the adb command
adb logcat -p
but I can't find any documentation for the -p. I've also found that with a lot of devices (possibly all devices on Marshmallow) this is not supported.
Other than having the device plugged into Android Studio / Eclipse, is there a way to stop 'chatty' from hiding my logs?
-
DrChandra over 6 yearsDocumentation: developer.android.com/studio/command-line/logcat.html
-
TheUmpteenth over 6 yearsThis looks quite useful, you can actually whitelist and blacklist the logs. Thanks
-
srs about 6 yearsDoesn't work for me
-
nealmcb almost 6 years@SantoshSalunke Can you be more specific? What happens? Error messages?
-
srs almost 6 yearsI don't get any error message. After this executing this command adb logcat -P "" , it does not disable chatty. I tried mentioning my app's UID/PID, it gets whitelisted but still chatty is not disabled. My device is OnePlus5
-
Matt over 4 yearsThis doesn't work.