Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can we turn off "chatty" in logcat? [duplicate]

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?

like image 717
TheUmpteenth Avatar asked May 03 '16 13:05

TheUmpteenth


People also ask

What is chatty in Logcat?

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>'

What is verbose Logcat?

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.

How do I pause Logcat?

you just click on the line three times and you can selectd the line , it will stops scrolling.


1 Answers

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 ""
like image 92
nealmcb Avatar answered Nov 11 '22 15:11

nealmcb