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?
As soon as app considered 'chatty' by logcat (more than 5 lines per second), logs of your app will be collapsed. You can avoid this behaviour by whitelisting your app for logcat: adb logcat -P '<pid or uid of your app>'
Verbose: Show all log messages (the default). Debug: Show debug log messages that are useful during development only, as well as the message levels lower in this list. Info: Show expected log messages for regular usage, as well as the message levels lower in this list.
you just click on the line three times and you can selectd the line , it will stops scrolling.
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 ""
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With